コード例 #1
0
ファイル: ScheduleView.cs プロジェクト: nandub/DeOps
        private void NewButton_Click(object sender, EventArgs e)
        {
            EditBlock form = new EditBlock(BlockViewMode.New, this, null);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ChangesMade();
                Plans_Update(Plans.LocalPlan);
            }
        }
コード例 #2
0
        private void RClickView(object sender, EventArgs e)
        {
            BlockMenuItem menu = sender as BlockMenuItem;

            if (menu == null)
            {
                return;
            }

            EditBlock form = new EditBlock(BlockViewMode.Show, View, menu.Block);

            form.ShowDialog(View);
        }
コード例 #3
0
        private void RClickEdit(object sender, EventArgs e)
        {
            BlockMenuItem menu = sender as BlockMenuItem;

            if (menu == null)
            {
                return;
            }

            EditBlock form = new EditBlock(BlockViewMode.Edit, View, menu.Block);

            if (form.ShowDialog(View) == DialogResult.OK)
            {
                View.RefreshRows();
                View.ChangesMade();
            }
        }
コード例 #4
0
        private void BlockRow_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            foreach (BlockArea area in BlockAreas)
            {
                if (area.Local && area.Rect.Contains(e.Location))
                {
                    BlockViewMode mode = (UserID == View.Core.UserID) ? BlockViewMode.Edit : BlockViewMode.Show;

                    EditBlock form = new EditBlock(mode, View, area.Block);
                    if (form.ShowDialog(View) == DialogResult.OK && mode == BlockViewMode.Edit)
                    {
                        View.ChangesMade();
                    }

                    break;
                }
            }
        }
コード例 #5
0
ファイル: ScheduleView.cs プロジェクト: RoelofSol/DeOps
        private void NewButton_Click(object sender, EventArgs e)
        {
            EditBlock form = new EditBlock(BlockViewMode.New, this, null);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ChangesMade();
                Plans_Update(Plans.LocalPlan);
            }
        }
コード例 #6
0
ファイル: BlockRow.cs プロジェクト: RoelofSol/DeOps
        private void RClickView(object sender, EventArgs e)
        {
            BlockMenuItem menu = sender as BlockMenuItem;

            if (menu == null)
                return;

            EditBlock form = new EditBlock(BlockViewMode.Show, View, menu.Block);
            form.ShowDialog(View);
        }
コード例 #7
0
ファイル: BlockRow.cs プロジェクト: RoelofSol/DeOps
        private void RClickEdit(object sender, EventArgs e)
        {
            BlockMenuItem menu = sender as BlockMenuItem;

            if (menu == null)
                return;

            EditBlock form = new EditBlock(BlockViewMode.Edit, View, menu.Block);

            if (form.ShowDialog(View) == DialogResult.OK)
            {
                View.RefreshRows();
                View.ChangesMade();
            }
        }
コード例 #8
0
ファイル: BlockRow.cs プロジェクト: RoelofSol/DeOps
        private void BlockRow_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            foreach (BlockArea area in BlockAreas)
                if (area.Local && area.Rect.Contains(e.Location))
                {
                    BlockViewMode mode = (UserID == View.Core.UserID) ? BlockViewMode.Edit : BlockViewMode.Show;

                    EditBlock form = new EditBlock(mode, View, area.Block);
                    if (form.ShowDialog(View) == DialogResult.OK && mode == BlockViewMode.Edit)
                        View.ChangesMade();

                    break;
                }
        }