Subversion Repository Public Repository

CommodityUtility

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
´╗┐using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CommodityUtility
{
    public partial class SelectTransport : Form
    {
        public CommodityTabTransport transport;

        public SelectTransport()
        {
            InitializeComponent();
        }

        private void SelectTransport_Load(object sender, EventArgs e)
        {
            Program.mainTransportSummaryViewTableAdapter.Fill(Program.mainTrackingDataSet.TransportSummaryView);
        }

        private void btnSelect_Click(object sender, EventArgs e)
        {
            if (gvTransportSummary.SelectedCells.Count > 0)
            {
                DataGridViewRow row = gvTransportSummary.Rows[gvTransportSummary.SelectedCells[0].RowIndex];
                int id = Convert.ToInt32(row.Cells["idDataGridViewTextBoxColumn"].Value);

                this.transport = new CommodityTabTransport(id);

                Program.mainTransportSummaryViewTableAdapter.Fill(Program.mainTrackingDataSet.TransportSummaryView);
                this.Close();
            }
            else
                MessageBox.Show("Please select a transport");
        }

        
    }
}

Commits for CommodityUtility/SelectTransport.cs

Diff revisions: vs.
Revision Author Commited Message
3 wysperia picture wysperia Thu 14 Jul, 2011 20:21:16 +0000

Version 1.0