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); }
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); } }
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); } } }
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); } }
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); } } }
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(); } } } }