Exemplo n.º 1
0
        private void OnShowButtonSettingForm(object sender, EventArgs e)
        {
            ButtonSettingDialog frm = new ButtonSettingDialog(data.ButtonSetting);

            frm.OnAccept += new EventHandler(OnAcceptButtonSettingForm);
            frm.Show();
        }
Exemplo n.º 2
0
        private void OnAcceptButtonSettingForm(object sender, EventArgs e)
        {
            ButtonSettingDialog frm = sender as ButtonSettingDialog;

            data.ButtonSetting = frm.ButtonSetting;
            this.InitializeButtonLayout(data);
            data.SaveXmlProfile(filepath);
            frm.Close();
        }