Пример #1
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            Form.SysDictionaryForm editForm = new SMT.SaaS.Permission.UI.Form.SysDictionaryForm(FormTypes.New, "");
            EntityBrowser          browser  = new EntityBrowser(editForm);

            browser.MinHeight        = 310;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Пример #2
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count <= 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            Form.SysDictionaryForm editForm = new SMT.SaaS.Permission.UI.Form.SysDictionaryForm(FormTypes.Edit, (DtGrid.SelectedItems[0] as T_SYS_DICTIONARY).DICTIONARYID);
            EntityBrowser          browser  = new EntityBrowser(editForm);

            browser.MinHeight        = 310;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Пример #3
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     Form.SysDictionaryForm editForm = new SMT.SaaS.Permission.UI.Form.SysDictionaryForm(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(editForm);
     browser.MinHeight = 310;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
Пример #4
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count <= 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            Form.SysDictionaryForm editForm = new SMT.SaaS.Permission.UI.Form.SysDictionaryForm(FormTypes.Edit, (DtGrid.SelectedItems[0] as T_SYS_DICTIONARY).DICTIONARYID);
            EntityBrowser browser = new EntityBrowser(editForm);
            browser.MinHeight = 310;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }