예제 #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            AddProvinceTaxForm addProvinceTaxForm = new AddProvinceTaxForm();

            addProvinceTaxForm.Size = new System.Drawing.Size(280, 200);
            addProvinceTaxForm.Show();
            this.Close();
        }
예제 #2
0
        private void ProvinceTaxesList_DoubleClick(object sender, EventArgs e)
        {
            AddProvinceTaxForm addProvinceTaxForm = new AddProvinceTaxForm(provinceTaxesList.SelectedItems[0].Text, Int32.Parse(provinceTaxesList.SelectedItems[0].SubItems[1].Text), Int32.Parse(provinceTaxesList.SelectedItems[0].SubItems[2].Text));

            addProvinceTaxForm.Size = new System.Drawing.Size(280, 200);
            addProvinceTaxForm.Show();
            this.Close();
        }
예제 #3
0
 private void EditButton_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem l in provinceTaxesList.SelectedItems)
     {
         AddProvinceTaxForm addProvinceTaxForm = new AddProvinceTaxForm(l.SubItems[0].Text, Int32.Parse(l.SubItems[1].Text), Int32.Parse(l.SubItems[2].Text));
         addProvinceTaxForm.Size = new System.Drawing.Size(280, 200);
         addProvinceTaxForm.Show();
         this.Close();
     }
 }