コード例 #1
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     
     MeetingRoomChildWindow orgFrm = new MeetingRoomChildWindow(Action.Add, null);
     //OrganAddForm orgFrm = new OrganAddForm(Action.Add, "");
     EntityBrowser browser = new EntityBrowser(orgFrm);
     browser.MinWidth = 650;
     browser.MinHeight = 400;
     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 (SelectedMeetingRoom != null)
     {
         MeetingRoomChildWindow orgFrm = new MeetingRoomChildWindow(Action.Edit, SelectedMeetingRoom);
         //OrganAddForm orgFrm = new OrganAddForm(Action.Add, "");
         EntityBrowser browser = new EntityBrowser(orgFrm);
         browser.MinWidth = 650;
         browser.MinHeight = 400;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }