private void WindowOpener(Window window) { //Reset the Openform Flag UserData.setOpenWindow(OpenForm.None); window.SizeChanged += OnWindowSizeChanged; window.Closed += OnWindowClosed; window.Show(); window.Activate(); }
private void labelStartEnd_OnMouseClick(object sender, MouseButtonEventArgs e) { if (!WorkdayHandler.getIsStarted()) { UserData.setOpenWindow(OpenForm.StartModify); } else { UserData.setOpenWindow(OpenForm.End); } Close(); }
private void LabelModify_OnMouseClick(object sender, MouseButtonEventArgs e) { UserData.setOpenWindow(OpenForm.StartModify); Close(); }