예제 #1
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Archivestable != null)
     {
         ArchivesAddForm form = new ArchivesAddForm(Action.Read, Archivestable.ARCHIVESID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.MinHeight = 410;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
예제 #2
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     ArchivesAddForm form = new ArchivesAddForm(Action.Add, "");
     EntityBrowser browser = new EntityBrowser(form);
     browser.MinHeight = 410;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) =>{} ,true);
     
 }