Ejemplo n.º 1
0
        private void newContractButton_Click(object sender, EventArgs e)
        {
            Form AddContract = new AddContract(this, null, s);

            AddContract.Owner = this;
            AddContract.ShowDialog();
            updateListView();
        }
Ejemplo n.º 2
0
 private void contractsView_MouseClick(object sender, MouseEventArgs e)
 {
     if (!admin)
     {
         string selected    = contractsView.SelectedItems[0].Text;
         Form   AddContract = new AddContract(this, Contracts.GetContract(int.Parse(selected)), s);
         AddContract.Owner = this;
         AddContract.ShowDialog();
         updateListView();
     }
 }