Exemple #1
0
        private void DownLoadProcessForm_Load(object sender, EventArgs e)
        {
            MonitorLog.OnLogCreate        += new EventHandler <DataEvenArgs>(MonitorLog_OnLogCreate);
            DownloadData.OnProcessFinish  += new EventHandler <DownloadArgs>(DownloadData_OnProcessFinish);
            DownloadData.OnPrecessUpdate  += new EventHandler <DownloadPrecess>(DownloadData_OnPrecessUpdate);
            DownloadData.OnProcessStart   += new EventHandler <StepNameEvenArgs>(DownloadData_OnProcessStart);
            DownloadData.OnProcessError   += new EventHandler <DownloadErrorArgs>(DownloadData_OnProcessError);
            DownloadData.OnDownLoadFinish += new EventHandler <EventArgs>(DownloadData_OnDownLoadFinish);

            DownloadData.OnTransferFinish += new EventHandler <DownloadArgs>(DownloadData_OnTransferFinish);

            OutPutList outputList = new OutPutList();
            OutPut     output     = new OutPut();

            output.Name  = "原出口";
            output.Value = "-1";
            outputList.Add(output);

            output       = new OutPut();
            output.Name  = "A出口";
            output.Value = "1";
            outputList.Add(output);

            output       = new OutPut();
            output.Name  = "B出口";
            output.Value = "2";
            outputList.Add(output);

            output       = new OutPut();
            output.Name  = "AB双出口";
            output.Value = "0";
            outputList.Add(output);



            coboutport.DataSource    = outputList;
            coboutport.DisplayMember = "Name";
            coboutport.ValueMember   = "Value";
        }
Exemple #2
0
        public CSortingTaskSearch()
        {
            InitializeComponent();
            dateTimeInput1.Value = DateTime.Now;

            DataGridViewTranslation.LoadMainColHeader(dgviewnone);



            DataGridViewTranslation.LoadDetailColHeader(dgviewnonedetail);

            footSumLabel1.Init(dgviewnonedetail, new Dictionary <string, int>()
            {
                { "qTYDataGridViewTextBoxColumn", 0 }
            });

            OutPutList outputList = new OutPutList();
            OutPut     output     = new OutPut();

            output       = new OutPut();
            output.Name  = "所有出口";
            output.Value = "0";
            outputList.Add(output);

            output       = new OutPut();
            output.Name  = "A出口";
            output.Value = "1";
            outputList.Add(output);

            output       = new OutPut();
            output.Name  = "B出口";
            output.Value = "2";
            outputList.Add(output);

            comboBoxEx1.DataSource    = outputList;
            comboBoxEx1.DisplayMember = "Name";
            comboBoxEx1.ValueMember   = "Value";
        }