예제 #1
0
 private void createDialog()
 {
     //CREATE DIALOG
     Dialog = UniDialog.Create(ICON.CHART_LINE, "Simulation");
     Dialog.setButton("OK", "leave the dialog", new Action(() => { Dialog.Close(); }));
     Dialog.AllowAutoSize();
 }
예제 #2
0
        // 子を追加
        private void addChild_ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniDialog <WorkDescriber> .ShowDialog(this,
                                                  (result) =>
            {
                if (result != DialogResult.OK)
                {
                    return;
                }

                // アクティブになっている要素を取得
                var node = taskTreeView_.SelectedNode;
                if (node == null)
                {
                    return;
                }

                // アクティブ中のタスクの配下に追加
                TaskInfoManager.EntryRange(node.FullPath, WorkDescriber.ResultStrings);

                // ツリービュー更新
                TreeViewUpdate();
            });
        }