コード例 #1
0
        protected override void New(object sender)
        {
            frmCihazTanim lokasyonform = new frmCihazTanim();

            lokasyonform.MdiParent = this.MdiParent;
            lokasyonform.Text      = "Cihaz Tanım Formu";
            lokasyonform.Show();

            //((MdiTabControl.TabControl)(this.Parent.Parent)).TabPages.Add(kisiform);
        }
コード例 #2
0
        protected override void View(object sender)
        {
            if (gridView1.GetFocusedDataRow()["Id"] != null && gridView1.GetFocusedDataRow()["Id"] != System.DBNull.Value)
            {
                int objId = Convert.ToInt32(gridView1.GetFocusedDataRow()["Id"]);

                frmCihazTanim sablonform = new frmCihazTanim(objId, EkranDurumu.Izle);
                sablonform.MdiParent = this.MdiParent;
                sablonform.Text      = "Cihaz Tanım Formu";
                sablonform.Show();

                //((MdiTabControl.TabControl)(this.Parent.Parent)).TabPages.Add(ulke);
            }
        }