Esempio n. 1
0
        private void textBox_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Alt)
            {
                e.Handled = true;

                if (e.KeyCode == Keys.O)
                {
                    btOk.PerformClick();
                }
                if (e.KeyCode == Keys.C)
                {
                    btCancel.PerformClick();
                }
            }
        }
Esempio n. 2
0
        private void btAddIgnore_Click(object sender, EventArgs e)
        {
            if (listView.SelectedData == null)
            {
                return;
            }

            FileInfo fi = new FileInfo(VSExpertVSIX.SolutionList.DTE.Solution.FileName);

            File.AppendAllLines(fi.DirectoryName + "\\.vs.expert.ignore.txt", new string[] { listView.SelectedData.Datas[0].ToString() });
            btnIgnoreList.PerformClick();
        }
Esempio n. 3
0
 private void listView_DoubleClick(object sender, System.EventArgs e)
 {
     btOk.PerformClick();
 }