Exemplo n.º 1
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddProject dlg = new AddProject(_masterServer);
     dlg.ShowDialog();
     dlg.Dispose();
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
 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();
 }