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

            InitializeComponent();
            InitializeForm();
        }
示例#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();
        }
示例#3
0
 private void btnPC_Click(object sender, EventArgs e)
 {
     frmPC pc = new frmPC(uid);
     pc.ShowDialog();
 }