예제 #1
0
        protected override void New(object sender)
        {
            frmAdres lokasyonform = new frmAdres();
            lokasyonform.MdiParent = this.MdiParent;
            lokasyonform.Text = "Adres Tanım Formu";
            lokasyonform.Show();

            //((MdiTabControl.TabControl)(this.Parent.Parent)).TabPages.Add(kisiform);
        }
        protected override void New(object sender)
        {
            frmAdres lokasyonform = new frmAdres();

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

            //((MdiTabControl.TabControl)(this.Parent.Parent)).TabPages.Add(kisiform);
        }
예제 #3
0
        protected override void Edit(object sender)
        {
            if (gridView1.GetFocusedDataRow()["Id"]!=null && gridView1.GetFocusedDataRow()["Id"]!=System.DBNull.Value)
            {
                int objId = Convert.ToInt32(gridView1.GetFocusedDataRow()["Id"]);

                frmAdres sablonform = new frmAdres(objId, EkranDurumu.Duzenle);
                sablonform.Text = "Adres Tanım Formu";
                sablonform.MdiParent = this.MdiParent;
                sablonform.Show();

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

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

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