public options_panel(Button button, ButtonSettings settings)
 {
     this.settings = settings;
     this.button   = button;
     InitializeComponent();
     bName.Text    = button.Text;
     bCommand.Text = settings.button_print;
 }
示例#2
0
 private void Anybutton_Click(object sender, EventArgs e)
 {
     if (_setting == false)
     {
         ButtonSettings temp = buttons[(Button)sender];
         _master.Send_Data(temp.button_print);
     }
     else
     {
         ButtonSettings buttonSettings;
         buttons.TryGetValue((Button)sender, out buttonSettings);
         options_panel options = new options_panel((Button)sender, buttonSettings);
         options.Show();
     }
 }