private void addToolStripMenuItem_Click(object sender, EventArgs e) { AddProject dlg = new AddProject(_masterServer); dlg.ShowDialog(); dlg.Dispose(); }
private void FinishedMenuEditClick(object sender, EventArgs e) { if (FinishedProjectGrid.SelectedRows.Count == 0) return; int id = Convert.ToInt32(FinishedProjectGrid.SelectedRows[0].Cells[0].Value); AddProject dlg = new AddProject(_masterServer, _masterServer.GetProject(id)); dlg.ShowDialog(); dlg.Dispose(); }
private void editNodeToolStripMenuItem_Click(object sender, EventArgs e) { if (ActiveProjectGrid.SelectedRows.Count == 0) return; int id = Convert.ToInt32(ActiveProjectGrid.SelectedRows[0].Cells[0].Value); AddProject dlg = new AddProject(_masterServer, _masterServer.GetProject(id)); dlg.ShowDialog(); dlg.Dispose(); }
private void editProjectToolStripMenuItem_Click(object sender, EventArgs e) { int projectId = -1; string nodeText = ""; string s = nodeText.Substring(nodeText.LastIndexOf('(') + 1); s = s.Substring(0, s.Length - 1); projectId = int.Parse(s); RenderProject project = _masterServer.GetProject(projectId); if (project == null) { MessageBox.Show("Cannot retreive project information", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } AddProject dlg = new AddProject(_masterServer, project); dlg.ShowDialog(); dlg.Dispose(); }
private void ServerWin_DragDrop(object sender, DragEventArgs e) { if (!_isMaster) return; string[] files = (string[]) e.Data.GetData(DataFormats.FileDrop); AddProject dlg = new AddProject(_masterServer, files[0]); dlg.ShowDialog(); dlg.Dispose(); }