private void btnAdimx1_ItemClick(object sender, ItemClickEventArgs e) { if (UICurrentManager.Instance.CurrentTender != null) { btnAdimx1.ButtonStyle = BarButtonStyle.Check; RibonPasif(); if (ta1 == null) { ta1 = new frm_Teklif_Adim1(); ta1.MdiParent = this; ta1.FormClosed += new FormClosedEventHandler(Ta1_FormClosed); ta1.Show(); } else { ta1.Activate(); } } else { btnAdimx1.ButtonStyle = BarButtonStyle.Default; frm_MesajFormu mf = new frm_MesajFormu(); mf.lblMesaj.Text = "Aktif bir İhale Bulunamadı\n Yeni bir İhale oluşturun yada \n Raporlar Menüsünden bir İhale açın."; mf.ShowDialog(); } }
private void btnIhaleAc_Click(object sender, EventArgs e) { int Id = SimpleApplicationBase.Toolkit.Helpers.GetValueFromObject <int>(gridViewActiveTenderList.GetFocusedRowCellValue("Id")); UICurrentManager.Instance.CurrentTender = TenderProvider.Instance.GetItem(Id); this.Close(); frm_Anaform af = (frm_Anaform)Application.OpenForms["frm_Anaform"]; af.ribbonPage7.Ribbon.SelectedPage = af.ribbonPage7; af.RibonPasif(); if (ta1 == null) { ta1 = new frm_Teklif_Adim1(); ta1.MdiParent = af; ta1.FormClosed += new FormClosedEventHandler(Ta1_FormClosed); ta1.Show(); } else { ta1.Activate(); } }