Beispiel #1
0
        private void OnNewWordButtonClick(object sender, EventArgs e)
        {
            MonitorControlAdWordForm adWordForm = new MonitorControlAdWordForm(this);

            adWordForm.Init(null);
            if (adWordForm.ShowDialog(this) == DialogResult.OK)
            {
                this.Reload();
            }
        }
Beispiel #2
0
        private void OnAdWordGridDoubleClick(object sender, MouseEventArgs e)
        {
            MonitorControlAdWordForm adWordForm = new MonitorControlAdWordForm(this);

            int[] selectedRows = this.gridView2.GetSelectedRows();
            if (selectedRows.Length == 1)
            {
                CSBAdWord adWord = (CSBAdWord)this.gridView2.GetRow(selectedRows[0]);
                adWordForm.Init(adWord);
                if (adWordForm.ShowDialog(this) == DialogResult.OK)
                {
                    this.Reload();
                }
            }
        }