Beispiel #1
0
 private void newPersonToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NewPersonForm newPersonForm = new NewPersonForm();
     newPersonForm.ShowDialog(this);
 }
Beispiel #2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!this.exportBusy)
            {
                if (enterpriseList.SelectedNode != null)
                {
                    if (!enterpriseList.SelectedNode.Tag.ToString().IsEmpty() && enterpriseList.SelectedNode.Tag != (Object)"DontRemove[!]")
                    {
                        if (enterpriseList.SelectedNode.Name == "Person")
                        {
                            
                            editCreatePerson = new NewPersonForm(ep.person[int.Parse(enterpriseList.SelectedNode.Tag.ToString())]);
                            editCreatePerson.FormClosing += this.Form1_FormClosing;
                            editCreatePerson.ShowDialog(this);

                            
                        }
                        else
                            MessageBox.Show("Group editor is not supported!");
                    }
                    else
                        MessageBox.Show("Please select a valid item to edit");
                }
                else
                    MessageBox.Show("Please select a item");
            }
            else
                MessageBox.Show("Something is currently progressing. Please wait until the progress is done!");
        }