コード例 #1
0
        private void NewFormEdit(IUMLElement element)
        {
            element.Owner = (IUMLElement)_selectedNode.Tag;

            FormEdit form = FormsFactory.GetFormEdit(element);

            form.FormSaved += new EventHandler(form_FormSaved);

            form.Show(this.DockPanel);
        }
コード例 #2
0
        private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            FormEdit form = FormsFactory.GetFormEdit(e.Node.Tag as IUMLElement);

            if (form != null)
            {
                form.FormClosed += new FormClosedEventHandler(form_FormClosed);
                form.Show(this.DockPanel);
            }
        }
コード例 #3
0
ファイル: ucFlowEdit.cs プロジェクト: nyulacska/tupux
        private void uMLFlowCollectionDataGridView_DoubleClick(object sender, EventArgs e)
        {
            UMLFlow item = uMLFlowCollectionBindingSource.Current as UMLFlow;

            if (item != null)
            {
                FormEdit form = FormsFactory.GetFormEdit(item);

                if (form != null)
                {
                    form.FormClosed += new FormClosedEventHandler(form_FormClosed);
                    form.Show((this.ParentForm as WeifenLuo.WinFormsUI.Docking.DockContent).DockPanel);
                }
            }
        }
コード例 #4
0
ファイル: IterationEdit.cs プロジェクト: nyulacska/tupux
        private void btnNext_Click(object sender, EventArgs e)
        {
            //IterationEdit iterationEdit = new IterationEdit((UMLIteration)Iteration.Next);
            //iterationEdit.Show(this.DockPanel);
            FormEdit form = FormsFactory.GetFormEdit(Iteration.Next);

            if (this.DockPanel == null)
            {
                form.Show();
            }
            else
            {
                form.Show(this.DockPanel);
            }
        }
コード例 #5
0
ファイル: PhaseEdit.cs プロジェクト: nyulacska/tupux
 private void uMLIterationDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         UMLIteration iteration = (UMLIteration)this.uMLIterationDataGridView.Rows[e.RowIndex].DataBoundItem;
         FormEdit     form      = FormsFactory.GetFormEdit(iteration);
         if (this.DockPanel == null)
         {
             form.Show();
         }
         else
         {
             form.Show(this.DockPanel);
         }
     }
 }
コード例 #6
0
        private void uMLFlowCollectionDataGridView_DoubleClick(object sender, EventArgs e)
        {
            UMLFlow item = uMLFlowCollectionBindingSource.Current as UMLFlow;

            if (item != null)
            {
                FormEdit form = FormsFactory.GetFormEdit(item);

                if (form != null)
                {
                    form.FormClosed += new FormClosedEventHandler(form_FormClosed);
                    if (this.DockPanel != null)
                    {
                        form.Show(this.DockPanel);
                    }
                    else
                    {
                        form.Show();
                    }
                }
            }
        }