コード例 #1
0
        internal static void buttonFunkySettingDB_Click(object sender, RoutedEventArgs e)
        {
            //Update Account Details when bot is not running!
            if (!BotMain.IsRunning)
            {
                Bot.Character.Account.UpdateCurrentAccountDetails();
            }

            string settingsFolder = FolderPaths.sDemonBuddyPath + @"\Settings\FunkyBot\" + Bot.Character.Account.CurrentAccountName;

            if (!Directory.Exists(settingsFolder))
            {
                Directory.CreateDirectory(settingsFolder);
            }

            try
            {
                //var settingsForm = new SettingsForm();
                //settingsForm.ShowDialog();

                funkyConfigWindow = new FunkyWindow();
                funkyConfigWindow.Show();
            }
            catch (Exception ex)
            {
                Logger.DBLog.InfoFormat("Failure to initilize Funky Setting Window! \r\n {0} \r\n {1} \r\n {2}", ex.Message, ex.Source, ex.StackTrace);
            }
        }
コード例 #2
0
ファイル: FunkyWindowEvents.cs プロジェクト: BUFORD/Funky
        internal static void buttonFunkySettingDB_Click(object sender, RoutedEventArgs e)
        {
            //Update Account Details when bot is not running!
            if (!BotMain.IsRunning)
                Bot.Character.Account.UpdateCurrentAccountDetails();

            string settingsFolder = FolderPaths.sDemonBuddyPath + @"\Settings\FunkyBot\" + Bot.Character.Account.CurrentAccountName;
            if (!Directory.Exists(settingsFolder)) Directory.CreateDirectory(settingsFolder);

            try
            {
                //var settingsForm = new SettingsForm();
                //settingsForm.ShowDialog();

                funkyConfigWindow = new FunkyWindow();
                funkyConfigWindow.Show();
            }
            catch (Exception ex)
            {
                Logger.DBLog.InfoFormat("Failure to initilize Funky Setting Window! \r\n {0} \r\n {1} \r\n {2}", ex.Message, ex.Source, ex.StackTrace);
            }
        }