コード例 #1
0
        public HamMenuForm(TasksForm form)
        {
            InitializeComponent();

            myForm = form;
            lists  = Settings.Lists;

            BackgroundImage = form.DarkenedBitmapFromForm();

            DrawLists();
            Show();
        }
コード例 #2
0
ファイル: TaskControl.cs プロジェクト: RewForeN/Time-Tasker
        public TaskControl(TasksForm form, Task task)
        {
            InitializeComponent();

            lblText.Text = task.Message;

            myForm = form;
            myTask = task;

            myTask.TaskChanged += MyTask_TaskChanged;

            Draw();
        }
コード例 #3
0
        public TaskCreateForm(TasksForm form)
        {
            InitializeComponent();

            myForm = form;

            BackgroundImage = form.DarkenedBitmapFromForm();

            pnl1.BackColor            = Settings.ColorTheme;
            pnl2.BackColor            = Settings.ColorTheme;
            pnl3.BackColor            = Settings.ColorTheme;
            pnl4.BackColor            = Settings.ColorTheme;
            drpPriority.SelectedIndex = 0;

            Show();
        }
コード例 #4
0
        public TaskEditForm(TasksForm form, Task task)
        {
            InitializeComponent();

            BackgroundImage = form.DarkenedBitmapFromForm();

            myForm = form;
            myTask = task;

            pnl1.BackColor = Settings.ColorTheme;
            pnl2.BackColor = Settings.ColorTheme;
            pnl3.BackColor = Settings.ColorTheme;
            pnl4.BackColor = Settings.ColorTheme;

            txtMessage.Text           = task.Message;
            dtpDueDate.Value          = task.DueDate;
            drpPriority.SelectedIndex = task.Priority;

            Show();
        }
コード例 #5
0
 public HamMenuForm(List <TaskList> list, TaskList list2)
 {
     lists  = list;
     myForm = new TasksForm(list2);
 }