예제 #1
0
파일: Panel.cs 프로젝트: dfr0/moon
		public static void Main (string[] args)
		{
			Application.Init ();
			PanelWindow win = new PanelWindow ();
			win.Show ();
			Application.Run ();
		}
예제 #2
0
 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");
     }
 }
예제 #3
0
        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();
            }
        }