Example #1
0
        public frmEditPC(Form form,string pcName)
        {
            pc = form as frmPC;
            this.pcName = pcName;

            InitializeComponent();
            InitializeForm();
        }
Example #2
0
        public frmNewPC(Form form,string mode)
        {
            switch (form.Name)
            {
                case "frmPC":
                    pc = form as frmPC;
                    break;
                case "frmAssignTo":
                    assign = form as frmAssignTo;
                    break;
            }

            this.mode = mode;

            InitializeComponent();
        }
Example #3
0
 private void btnPC_Click(object sender, EventArgs e)
 {
     frmPC pc = new frmPC(uid);
     pc.ShowDialog();
 }