Example #1
0
        /// <summary>
        /// 增加按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddButton_Click(object sender, EventArgs e)
        {
            var newsetting = CardSettingManager.GetNewCardSetting();

            settingfrm = new OneSignalSettingFrm(newsetting);
            settingfrm.ConfirmEvent += Settingfrm_AddConfirmEvent;
            settingfrm.ShowDialog();
        }
Example #2
0
        private void ChangeButton_Click(object sender, EventArgs e)
        {
            int    r = CardSettingDataGridView.CurrentRow.Index;
            string Selectmonitorname = (string)CardSettingDataGridView[0, r].Value;

            selectname = Selectmonitorname;
            var onesetting = CardSettingManager.GetOneCardSetting(Selectmonitorname);

            settingfrm = new OneSignalSettingFrm(onesetting);
            settingfrm.ConfirmEvent += Settingfrm_ChgConfirmEvent;
            settingfrm.ShowDialog();
        }