示例#1
0
        private void LoadMaster_Button_Click(object sender, EventArgs e)
        {
            maxEPCLength = Int32.Parse(EPCLength_TextBox.Text);
            maxTIDLength = Int32.Parse(TIDLength_TextBox.Text);
            if (OrderNumber_TextBox.Text == "")
            {
                MessageBox.Show("Please enter the order numbr before continuing");
                Application.Restart();
            }
            else
            {
                orderNumber = OrderNumber_TextBox.Text;
            }

            OpenFileDialog dialog = new OpenFileDialog();

            if (this.Offline_CheckBox.Checked)
            {
                dialog.InitialDirectory = @"C:\Users\";
            }
            else
            {
                dialog.InitialDirectory = @"W:\Public\RFID\";
            }

            dialog.ShowDialog();

            masterFile = dialog.FileName;
            FileName_ListBox.Items.Add(dialog.SafeFileName);
            FileName_ListBox.Update();
            dl = new DualList(masterFile, Convert.ToInt32(EpcCount_TextBox.Text), maxEPCLength,
                              maxTIDLength);
        }
示例#2
0
        private void LoadPredator_Button_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            if (this.Offline_CheckBox.Checked)
            {
                dialog.InitialDirectory = @"C:\Users\";
            }
            else
            {
                dialog.InitialDirectory = @"W:\Public\RFID\";
            }

            dialog.ShowDialog();

            toRead = dialog.FileName;
            FileName_ListBox.Items.Add(dialog.SafeFileName);
            FileName_ListBox.Update();
            pred = true;
            Main main = new Main(masterFile, @"C:/Users/public/AssociationFiles/", toRead, dl, orderNumber);

            main.main(pred);
        }