コード例 #1
0
        private void InfoAlertExecute(object parameter)
        {
            IAlertChooser alert        = new InfoAlert();
            var           alertChooser = new AlertChooser(alert);

            alertChooser.BuildAlert();
        }
コード例 #2
0
 private void LsbActions_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (lsbActions.SelectedItem != null)
     {
         Action action = (Action)lsbActions.SelectedItem;
         InfoAlert.Show($"{action.Name}\n\n{action.Description}\n\nType:\n{action.Type.ToString()}\n\nParameters:\n{GetParametersForAction(action)}");
     }
 }
コード例 #3
0
 private void CheckWorkspace()
 {
     if (App.GlobalSettings.GetPathSetting("workspaceDirectory") == string.Empty)
     {
         InfoAlert.Show("Welcome to Interpic studio!\nPlease select a folder to use as your workspace. The workspace will contain all Interpic projects you create.");
         System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
         if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             App.GlobalSettings.PathSettings.Find(setting => setting.Key == "workspaceDirectory").Value = dialog.SelectedPath;
             App.SaveGlobalSettings();
         }
         else
         {
             CheckWorkspace();
         }
     }
 }