void mnuAddResource_Click(object sender, EventArgs e) { if (this.MyJob == "Project") { Program.CursorWait(); KS.Gantt.Dialogs.ResourceEditDialog Dlg = new KS.Gantt.Dialogs.ResourceEditDialog(); Dlg.Edit(ucGantt1.gantt1, null); Dlg.ShowDialog(this); Dlg.Dispose(); Dlg = null; } }
protected override void mnuNew_Click(object sender, EventArgs e) { base.mnuNew_Click(sender, e); if (m_GanttControl == null) return; Program.CursorWait(); KS.Gantt.Dialogs.ResourceEditDialog Dlg = new KS.Gantt.Dialogs.ResourceEditDialog(); Dlg.Edit(m_GanttControl, null); Dlg.ShowDialog(this); Dlg.Dispose(); Dlg = null; }