private void lkParentMenu_FindClick(object sender, EventArgs e) { MenuLookupForm lookup = new MenuLookupForm(""); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { //StrSystemType = ""; MenuLookupForm lookup = new MenuLookupForm(StrSystemType); LookUp lkParentMenu = Utility.FindChildControl <LookUp>(expander, "lkParentMenu"); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; lkParentMenu.DisplayMemberPath = "MENUNAME"; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { ComboBox cbxSystemType = Utility.FindChildControl <ComboBox>(expander, "cbxSystemType"); T_SYS_DICTIONARY dict = cbxSystemType.SelectedItem as T_SYS_DICTIONARY; string systype = dict == null ? "" : dict.DICTIONARYVALUE.GetValueOrDefault().ToString(); MenuLookupForm lookup = new MenuLookupForm(systype); LookUp lkParentMenu = Utility.FindChildControl <LookUp>(expander, "lkParentMenu"); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; lkParentMenu.DisplayMemberPath = "MENUNAME"; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { T_SYS_DICTIONARY systype = cbxSystemType.SelectedItem as T_SYS_DICTIONARY; if (systype == null) { return; } MenuLookupForm lookup = new MenuLookupForm(systype.DICTIONARYVALUE.ToString()); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { ComboBox cbxSystemType = Utility.FindChildControl<ComboBox>(expander, "cbxSystemType"); T_SYS_DICTIONARY dict = cbxSystemType.SelectedItem as T_SYS_DICTIONARY; string systype = dict == null ? "" : dict.DICTIONARYVALUE.GetValueOrDefault().ToString(); MenuLookupForm lookup = new MenuLookupForm(systype); LookUp lkParentMenu = Utility.FindChildControl<LookUp>(expander, "lkParentMenu"); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; lkParentMenu.DisplayMemberPath = "MENUNAME"; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { T_SYS_DICTIONARY systype = cbxSystemType.SelectedItem as T_SYS_DICTIONARY; if (systype == null) return; MenuLookupForm lookup = new MenuLookupForm(systype.DICTIONARYVALUE.ToString()); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; }; lookup.Show(); }
private void lkParentMenu_FindClick(object sender, EventArgs e) { //StrSystemType = ""; MenuLookupForm lookup = new MenuLookupForm(StrSystemType); LookUp lkParentMenu = Utility.FindChildControl<LookUp>(expander, "lkParentMenu"); lookup.SelectedClick += (obj, ev) => { lkParentMenu.DataContext = lookup.SelectedObj; lkParentMenu.DisplayMemberPath = "MENUNAME"; }; lookup.Show(); }