private void cmdAdd_Click(object sender, RoutedEventArgs e) { if (!CHelper.VerifyAccessRight("BRANCH_CONFIG_ADD")) { return; } String caption = CLanguage.getValue("add") + " " + CLanguage.getValue("Branch"); WinAddEditBranchConfig w = new WinAddEditBranchConfig("A", itemSources, null, caption); w.ItemAddedHandler = ItemAddedEvent; w.ShowDialog(); }
private void showEditWindow() { if (!CHelper.VerifyAccessRight("BRANCH_CONFIG_VIEW")) { return; } MBaseModel v = currentObj; String caption = CLanguage.getValue("edit") + " " + CLanguage.getValue("Branch"); WinAddEditBranchConfig w = new WinAddEditBranchConfig("E", null, (MBranchConfigCenter)v, caption); w.ShowDialog(); }