示例#1
0
 private void mnuSearchNReplace_Click(object sender, EventArgs e)
 {
     if (frmSnR.IsDisposed)
     {
         frmSnR = new FrmSearchNReplace(txtMain);
     }
     frmSnR.Show(this);
 }
示例#2
0
 public FrmMain()
 {
     if (!File.Exists("cEditorCore.dll"))
     {
         MessageBox.Show("你大爷!把我的cEditorCore.dll还回来!", "WTF", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(-1);
     }
     InitializeComponent();
     cd     = new ColorDialog();
     fd     = new FontDialog();
     frmSnR = new FrmSearchNReplace(txtMain);
     string[] argu = Environment.GetCommandLineArgs();
     if (argu.Length == 2 && File.Exists(argu[1]))
     {
         Open(argu[1]);
     }
 }