示例#1
0
        public ASFui()
        {
            while (!Util.CheckBinary())
            {
                var result = MessageBox.Show(@"ASF binary setting not configured. Configure now?",
                    @"ASF binary not found.", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
                if (result == DialogResult.Yes)
                {
                    Properties.Settings.Default.ASFBinary = "Setting not configured.";
                    var settings = new SettingsForm();
                    settings.ShowDialog();
                }
                else
                {
                    Environment.Exit(-1);
                }
            }

            if (Util.CheckIfAsfIsRunning())
            {
                MessageBox.Show(@"An instance of ASF is already running. Close it.",
                    @"ASF already running.", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(-2);
            }
            InitializeComponent();
            Util.CheckVersion();
            _isLocal = Properties.Settings.Default.IsLocal;
        }
示例#2
0
文件: ASFui.cs 项目: Zeriwi/ASFui
        private void btnASFuiSettings_Click(object sender, EventArgs e)
        {
            var settings = new SettingsForm();

            settings.ShowDialog();
        }
示例#3
0
 private void btnASFuiSettings_Click(object sender, EventArgs e)
 {
     var settings = new SettingsForm();
     settings.ShowDialog();
 }