public void PermissionLineOnRemoveClicked([CanBeNull] object sender, [CanBeNull] EventArgs e) { if (LimitPresenter == null) { return; } if (e == null) { return; } var aca = (AddClickedEventArgs)e; if (aca.TimeLimitEntry == LimitPresenter.ThisTimeLimit.RootEntry) { return; } LimitPresenter.RemoveSubentry(aca.TimeLimitEntry); foreach (var line in PermissionLines) { line.Presenter.SetAllOnProperty(); } }
private void Expander_SizeChanged([CanBeNull] object sender, [CanBeNull] SizeChangedEventArgs e) { if (LimitPresenter != null) { LimitPresenter.SetExpanderWidth( NewPermissionExpander.ActualWidth); } }
private void Delete_Click([CanBeNull] object sender, [CanBeNull] RoutedEventArgs e) { if (LimitPresenter != null) { LimitPresenter.AskDeleteQuestion( LimitPresenter.ThisTimeLimit.HeaderString, LimitPresenter.Delete); } }
private void CloseClick([CanBeNull] object sender, [CanBeNull] RoutedEventArgs e) { if (LimitPresenter == null) { return; } LimitPresenter.Close(true); }
private void BtnRefreshPersons_Click([CanBeNull] object sender, [CanBeNull] RoutedEventArgs e) { if (LimitPresenter == null) { return; } LimitPresenter.RefreshUsedIn(); }
private void BtnCreateCopy([CanBeNull] object sender, [CanBeNull] RoutedEventArgs e) { if (LimitPresenter == null) { return; } LimitPresenter.CreateCopy(); }
private void BtnImportTimeLimitClick([CanBeNull] object sender, [CanBeNull] RoutedEventArgs e) { if (LimitPresenter == null) { return; } LimitPresenter.ImportTimeLimit(); MessageWindowHandler.Mw.ShowInfoMessage("Import finished.", "Success"); LimitPresenter.Close(true); LimitPresenter.ApplicationPresenter.OpenItem(LimitPresenter.ThisTimeLimit); }
public void PermissionLineOnAddClicked([CanBeNull] object sender, [CanBeNull] EventArgs e) { if (LimitPresenter == null) { return; } if (e == null) { return; } var aca = (AddClickedEventArgs)e; LimitPresenter.AddSubentry(aca.TimeLimitEntry); }