Пример #1
0
        private void label9_Click(object sender, EventArgs e)
        {
            Hide();
            SmartScripts smart = new SmartScripts(form_MM);

            smart.Show();
        }
Пример #2
0
        private void label14_Click(object sender, EventArgs e)
        {
            Hide();
            SmartScripts smart = new SmartScripts(this);

            smart.Show();
        }
Пример #3
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);
            scratch.FormClosed += scratch_FormClosed;

            events.SetSAIType(type);
            scratches.Add(scratch);
        }
Пример #4
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)));
     }
 }
Пример #5
0
 public LoadRequestEventArgs(SmartScripts.SAIType type)
 {
     this.type = type;
 }