Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmAddConfig frmAdd = new frmAddConfig();

            frmAdd.convertConf = convConfig;
            frmAdd.ShowDialog();
        }
Пример #2
0
 private void listBox1_DoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         int index = this.listBox1.IndexFromPoint(e.Location);
         if (index != System.Windows.Forms.ListBox.NoMatches)
         {
             curOperaIndex = index;
             string       item   = listBox1.Items[index].ToString();
             SizeConfig   sc     = convConfig.sizes[index];
             frmAddConfig frmAdd = new frmAddConfig();
             frmAdd.removeBlock += new frmAddConfig.RemoveItemBlock(frmAdd_removeBlock);
             frmAdd.convertConf  = convConfig;
             frmAdd.sizeConf     = new SizeConfig(sc.name, sc.size);
             frmAdd.curItemIndex = index;
             frmAdd.ShowDialog();
             //do your stuff here
         }
     }
     catch (Exception ex) {
         MessageBox.Show(ex.Message);
     }
 }