Beispiel #1
0
        private void Add_Click(object sender, EventArgs e)
        {
            RewardEditor.buttonmode     = "Add";
            RewardEditor.rewardname     = "";
            RewardEditor.pointsrequired = "";
            RewardEditor.encrrewardname = "";
            Form editor = new RewardEditor();

            editor.ShowDialog();
            Populate_ListView("select * from rewards");
        }
Beispiel #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem item in listView1.SelectedItems)
     {
         Select_Reward(item.SubItems[0].Text);
     }
     if (RewardEditor.encrrewardname != "")
     {
         RewardEditor.buttonmode = "Edit";
         Form editor = new RewardEditor();
         editor.ShowDialog();
         Populate_ListView("select * from rewards");
     }
     else
     {
         MessageBox.Show("No Item Selected");
     }
 }