Exemple #1
0
        private void ShowOpenDialog(SmartScripts.SAIType type)
        {
            SelectSAI c = new SelectSAI(type);

            c.ShowDialog();
            if (c.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                NewSAIWindow(c.Value, type);
                OpenedHistory.Instance.insert(new OpenedHistoryAction(type, c.Value, GetName(type, c.Value)));
            }
        }
Exemple #2
0
 private void ShowOpenDialog(SmartScripts.SAIType type)
 {
     SelectSAI c = new SelectSAI(type);
     c.ShowDialog();
     if (c.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         NewSAIWindow(c.Value, type);
         OpenedHistory.Instance.insert(new OpenedHistoryAction(type, c.Value, GetName(type, c.Value)));
     }
 }