예제 #1
0
파일: frmMain.cs 프로젝트: sgrzeda/rose
 private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ConfigForm form = new ConfigForm();
     form.ShowDialog();
 }
예제 #2
0
파일: frmMain.cs 프로젝트: sgrzeda/rose
        private void frmMain_Load(object sender, System.EventArgs e)
        {
            SplashScreenManager.HideImage();
            SkinHelper.InitSkinPopupMenu(iPaintStyle);
            LoadLayout();

            if (Settings.Default.ThemeDir == "")
            {
                ConfigForm form = new ConfigForm();
                form.Owner = this;
                form.ShowDialog();
                if (form.Success == false)
                    this.Close();
            }

            if (!Directory.Exists(Settings.Default.ThemeDir))
            {
                if (MessageBox.Show("Theme Directory (" + Settings.Default.ThemeDir + ") does not exist.", "Rose GUI Editor - Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error) == DialogResult.Cancel)
                    this.Close();
                ConfigForm form = new ConfigForm();
                form.Owner = this;
                form.ShowDialog();
                if (form.Success == false)
                    this.Close();
            }
        }
예제 #3
0
파일: Scanner.cs 프로젝트: sgrzeda/rose
 private void LoadFile(string fileName)
 {
     try
     {
         string[] buffer = File.ReadAllText(fileName)
             .Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
         lines = new List<string>(buffer.Length);
         lines.AddRange(buffer);
     }
     catch (System.Exception ex)
     {
         if (MessageBox.Show(ex.Message, "Rose GUI Editor - Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error) == DialogResult.Cancel)
             Environment.Exit(-1);
         //Logging.Error(ex.Message);
         ConfigForm form = new ConfigForm();
         Application.Run(form);
         //if (form.Success == false)
             //Environment.Exit(-1);
         LoadFile(fileName);
     }
 }