private void cmdAdd_Click(object sender, RoutedEventArgs e) { if (!CHelper.VerifyAccessRight("SASS_SERVICE_ADD")) { return; } WinAddEditMicroService w = new WinAddEditMicroService(); w.Caption = (String)(sender as Button).Content; w.Mode = "A"; w.ParentItemSource = itemSources; w.ShowDialog(); refreshLocation(); }
private void showEditWindow() { if (!CHelper.VerifyAccessRight("SASS_SERVICE_VIEW")) { return; } MBaseModel v = currentObj; WinAddEditMicroService w = new WinAddEditMicroService(); w.ViewData = v; w.Caption = CLanguage.getValue("edit"); w.Mode = "E"; w.ParentItemSource = itemSources; w.ShowDialog(); refreshLocation(); }