Exemple #1
0
        public UC_Measure(IinterRef I_Home)
        {
            InitializeComponent();
            this.I_Home = I_Home;

            DGVMenus.Add(WorkStep.FrontGear, DGVFGear);
            DGVMenus.Add(WorkStep.FrontCase, DGVFCase);
        }
        public UC_Home(IinterRef I_Home)
        {
            InitializeComponent();
            this.I_Home = I_Home;
            #region ################### Add UserControls ###################

            uC_Measure = new UC_Measure(I_Home);
            uC_Record  = new UC_Record(I_Home);
            //Uc_Subitem.Add("STATUS", new UC_Sub_MAIN(I_Home));
            uC_Measure.Tag = btnMeasure.Tag;
            uC_Record.Tag  = btnShim.Tag;
            Uc_Subitem[0]  = uC_Measure;
            Uc_Subitem[1]  = uC_Record;

            int i = 0;
            foreach (UserControl item in Uc_Subitem)
            {
                item.Font      = new Font("현대하모니 M", 9F);
                item.BackColor = Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
                item.TabIndex  = i;
                item.Padding   = new Padding(2);
                item.Size      = new Size(331, 228);
                item.Location  = new Point(22, 278);

                PanSubItem.Controls.Add(item);
                item.Dock    = DockStyle.Fill;
                item.Visible = true;

                i++;
            }

            i = 0;
            foreach (Button btn in metroPanel1.Controls.OfType <Button>())
            {
                //Array.Resize(ref btnMenus, i + 1);
                //btnMenus[i] = btn;
                btnMenus.Add(btn.Text, btn);
                btnMenus[btn.Text].Click += btn_HeaderMuClick;
                i++;
            }
            Uc_Subitem[0].Visible = true;
            Uc_Subitem[0].BringToFront();
            #endregion
        }
Exemple #3
0
        public UC_Record(IinterRef I_Home)
        {
            InitializeComponent();
            this.I_Home = I_Home;

            foreach (Button btn in splitContainer2.Panel1.Controls.OfType <Button>())
            {
                //Array.Resize(ref btnMenus, i + 1);
                //btnMenus[i] = btn;
                btnMenus.Add(btn.Text, btn);
                btnMenus[btn.Text].Click += btn_HeaderMuClick;
            }
            foreach (DataGridView dgv in splitContainer2.Panel2.Controls.OfType <DataGridView>())
            {
                dgv.DoubleBuffered();
                dgv.Dock = DockStyle.Fill;
            }
            DGVMenus.Add(WorkStep.FrontGear, DGVFrontGear);
            DGVMenus.Add(WorkStep.FrontCase, DGVFrontCase);
            DGVFrontGear.BringToFront();
            lblHdName.Text = btnFrontgear.Tag.ToString();
        }
 public UC_PartSetting(IinterRef frm)
 {
     InitializeComponent();
     I_Part = frm;
 }
 public UC_PlcDataState(IinterRef frm)
 {
     InitializeComponent();
     I_Sub = frm;
 }
        public frmSetting(IinterRef frm)
        {
            InitializeComponent();

            this.frm = frm;
        }
Exemple #7
0
 public UC_DataView(IinterRef frm)
 {
     InitializeComponent();
     I_Sub = frm;
 }