示例#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)));
            }
        }
示例#2
0
        private void NewSAIWindow(int entryorguid, SmartScripts.SAIType type)
        {
            scratch = new ScratchWindow();
            scratch.Show(dockPanel1);
            scratch.ElementSelected     += this_callback;
            scratch.RequestWarnings     += this_RequestWarnings;
            scratch.RequestNewSAIWindow += scratch_RequestNewSAIWindow;
            scratch.Type = type;
            scratch.LoadFromDB(entryorguid);

            events.SetSAIType(type);
            scratches.Add(scratch);
        }
示例#3
0
 public LoadRequestEventArgs(SmartScripts.SAIType type)
 {
     this.type = type;
 }