Beispiel #1
0
        private void SaveEnvironment()
        {
            SHGlobal.SetSetting("ProjectFolder", SHGlobal.GetFolder());

            SHGlobal.SetSetting("AutoMonitorFile", (Option.AutoMonitorFile == true) ? 1 : 0);

            if (WindowState == FormWindowState.Normal)
            {
                SHGlobal.SetSetting("Width", Width);
                SHGlobal.SetSetting("Height", Height);
                SHGlobal.SetSetting("Left", Left);
                SHGlobal.SetSetting("Top", Top);
            }

            SHGlobal.SetSetting("mnuViewHideNoLoot", (mnuViewHideNoLoot.CheckState == CheckState.Checked) ? 1 : 0);
            SHGlobal.SetSetting("mnuViewHideNoninteract", (mnuViewHideNoninteract.CheckState == CheckState.Checked) ? 1 : 0);
            SHGlobal.SetSetting("mnuViewMonster", (mnuViewMonster.CheckState == CheckState.Checked) ? 1 : 0);
            SHGlobal.SetSetting("mnuViewObject", (mnuViewObject.CheckState == CheckState.Checked) ? 1 : 0);
            SHGlobal.SetSetting("mnuViewNPC", (mnuViewNPC.CheckState == CheckState.Checked) ? 1 : 0);

            for (int i = 0; i < (int)ValixianFormType.PAGE_MAX; i++)
            {
                SaveTabEnvironment(i);
            }


            SHGlobal.SaveSetting();
        }
Beispiel #2
0
        public void ShowSplashScreen()
        {
            SplashForm splash = new SplashForm();

            try
            {
                splash.SetLoadAfter(OnLoadAfter);
                splash.ShowDialog();
            }
            catch (ArgumentNullException ex)
            {
                MessageBox.Show(ex.Message + " - " + ex.ParamName);
                Environment.Exit(-1);
            }
            catch (NullReferenceException ex)
            {
                MessageBox.Show(ex.Message + " - " + ex.Source);
                Environment.Exit(-1);
            }
            catch (Exception ex)
            {
                if (ex.InnerException != null)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message + "\n\n" + ex.InnerException.StackTrace, "로딩 에러");
                }
                else
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace, "로딩 에러");
                }
                Environment.Exit(-1);
            }

            staPath.Text   = SHGlobal.GetFolder();
            fsWatcher.Path = SHGlobal.GetFolder();
        }
Beispiel #3
0
        private void mnuSVNUpdate_Click(object sender, EventArgs e)
        {
            String param = "update \"" + SHGlobal.GetFolder() + "\"";

            MessageBox.Show(param);
            LaunchExternalProgram("svn.exe", param, true);
        }
Beispiel #4
0
 private void mnuRunClient_Click(object sender, EventArgs e)
 {
     LaunchExternalProgram(SHGlobal.GetFolder() + "\\Raiderz.exe", null, false);
 }
Beispiel #5
0
 private void mnuRunServer_Click(object sender, EventArgs e)
 {
     LaunchExternalProgram(SHGlobal.GetFolder() + "\\Dev\\GameServer\\GameServer.exe", null, false);
 }