public static void Main (string[] args) { Application.Init (); PanelWindow win = new PanelWindow (); win.Show (); Application.Run (); }
private void RenamePlanner(string participantName, string plannerName, string plannerNewName) { if (plannerNewName.Length != 0) { if (plannerName != plannerNewName) { if (!PanelWindow.ExtractPlanners(DbAdapter.GetPlanners(participantName)).Contains(plannerNewName)) { try { DbAdapter.RenamePlanner(participantName, plannerName, plannerNewName); this.Planner.Name = plannerNewName; AdjustControls(); MessageBox.Show("Planner has been renamed"); } catch (Exception exception) { MessageBox.Show(exception.Message); } } else { MessageBox.Show($"Planner {plannerNewName} already exists"); } } else { MessageBox.Show("The planner new name must be different from the current one"); } } else { MessageBox.Show("Planner new name field must be filled"); } }
public static void Main(string[] args) { Application.Init(); PanelWindow win = new PanelWindow(); win.Show(); Application.Run(); }
/// <inheritdoc /> public override void Repaint() { if (EditorWindow != null) { EditorWindow.Repaint(); } if (PanelWindow != null) { PanelWindow.Repaint(); } }