示例#1
0
        private void lkParentMenu_FindClick(object sender, EventArgs e)
        {
            MenuLookupForm lookup = new MenuLookupForm("");

            lookup.SelectedClick += (obj, ev) =>
            {
                lkParentMenu.DataContext = lookup.SelectedObj;
            };
            lookup.Show();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
        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();
        }
示例#5
0
        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();
        }
示例#6
0
        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)
 {
     MenuLookupForm lookup = new MenuLookupForm("");
     lookup.SelectedClick += (obj, ev) =>
     {
         lkParentMenu.DataContext = lookup.SelectedObj;
     };
     lookup.Show();
 }
示例#8
0
        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();
        }