private void label9_Click(object sender, EventArgs e) { Hide(); SmartScripts smart = new SmartScripts(form_MM); smart.Show(); }
private void label14_Click(object sender, EventArgs e) { Hide(); SmartScripts smart = new SmartScripts(this); smart.Show(); }
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); }
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))); } }
public LoadRequestEventArgs(SmartScripts.SAIType type) { this.type = type; }