public void List_Option(ListOption pAction) { fAction = pAction; switch (fAction) { case ListOption.active: if (chk_notactive.Checked == true) { LoadData(CNamespaces_exten.NotActive()); } else { LoadData(CNamespaces_exten.Active()); } break; case ListOption.notactive: if (chk_notactive.Checked == true) { LoadData(CNamespaces_exten.NotActive()); } else { LoadData(CNamespaces_exten.Active()); } break; case ListOption.Search: if (txt_namespaces_name.Text != "") { List <Namespaces> list = new List <Namespaces> { CNamespaces_exten.SearchName(txt_namespaces_name.Text) }; LoadData(list); } else { LoadData(CNamespaces_exten.Active()); } break; default: LoadData(CNamespaces_exten.Active()); break; } }
private Stables CollectData() { Stables fobj = new Stables() { Stables_id = vId, Databases_id = CDatabases_exten.GetId_Name(txt_databases_id.Text.Trim()), Stables_name = txt_tables_name.Text.ToUpper().Trim(), Alias = txt_tables_alias.Text.ToUpper().Trim(), Namespaces_id = CNamespaces_exten.GetId_Name(txt_namespaces_id.Text.Trim()), Active_id = Core.Stative, }; return(fobj); }
public void SetAction(BtnEvent pAction, string pPkValue) { fAction = pAction; switch (fAction) { case BtnEvent.Open: btn_save.Text = "&CLOSE"; obj = CNamespaces_exten.PKId(pPkValue); this.EnableControls(false); break; case BtnEvent.New: btn_save.Text = "&SAVE"; obj = CNamespaces.GetNew; this.EnableControls(true); break; case BtnEvent.Edit: btn_save.Text = "&UPDATE"; obj = CNamespaces_exten.PKId(pPkValue); this.EnableControls(true); break; case BtnEvent.Delete: btn_save.Text = "CONFIRM\r\n&DELETE"; obj = CNamespaces_exten.PKId(pPkValue); this.EnableControls(false); break; case BtnEvent.Print: btn_save.Text = "&PRINT"; obj = CNamespaces_exten.PKId(pPkValue); this.EnableControls(false); break; } this.LoadData(); }
void Txt_namespaces_LookupUpdate(object sender, EventArgs e) { txt_namespaces_id.LookupList = CNamespaces_exten.GetforLookup(); }