public NodeSelectionForm(MainForm mainForm) { m_mainForm = mainForm; this.Font = SystemFonts.MessageBoxFont; InitializeComponent(); DialogResult = DialogResult.Cancel; }
private void m_mainForm_WorldChanged(object sender, MainForm.WorldChangedEventArgs e) { m_uploadedRepresentation = null; UpdateWorldHandlers(e.OldWorld as SchoolWorld, e.NewWorld as SchoolWorld); SelectSchoolWorld(null, EventArgs.Empty); UpdateData(); }
public ValidationForm(MainForm mainForm, MyValidator validator) { InitializeComponent(); Validator = validator; m_mainForm = mainForm; }
public DebugForm(MainForm mainForm) { m_mainForm = mainForm; InitializeComponent(); m_mainForm.SimulationHandler.StateChanged += SimulationHandler_StateChanged; }
public ValidationForm(MainForm mainForm) { InitializeComponent(); Validator = new MyValidator(); m_mainForm = mainForm; }
public NodeHelpForm(MainForm mainForm) { InitializeComponent(); m_mainForm = mainForm; //m_style = MyResources.GetTextFromAssembly(Assembly.GetExecutingAssembly(), "help_page.css", "res"); m_style = Properties.Resources.help_page; }
public ObserverForm(MainForm mainForm, MyAbstractObserver observer, MyNode declaredOwner) { InitializeComponent(); m_mainForm = mainForm; Observer = observer; observer.TriggerReset(); Text = observer.GetTargetName(declaredOwner); }
public ObserverForm(MainForm mainForm, MyAbstractObserver observer, MyNode declaredOwner) { InitializeComponent(); m_mainForm = mainForm; Observer = observer; observer.TriggerReset(); Text = MyProject.ShortenNodeTypeName(observer.GetType()) + ": " + observer.GetTargetName(declaredOwner); }
public GraphLayoutForm(MainForm mainForm, MyNodeGroup target) { InitializeComponent(); m_mainForm = mainForm; Target = target; Text = target.Name; Desktop.CreateConnection = delegate() { return new MyNodeViewConnection(); }; }
public ToyWorldConversation(MainForm mainForm) { InitializeComponent(); m_mainForm = mainForm; m_mainForm.SimulationHandler.StateChanged += SimulationHandler_StateChanged; m_boldFont = new Font(richTextBox_messages.Font, FontStyle.Bold); m_normalFont = richTextBox_messages.Font; m_displayNodes = new List<ToyWorldGUI>(); m_interceptNodes = new List<ToyWorldGUI>(); FindGuiNodes(); }
public ConsoleForm(MainForm mainForm) { InitializeComponent(); m_mainForm = mainForm; MyLog.Writer = new TextBoxCache(this); MyLog.GrabConsole(); m_mainForm.SimulationHandler.ProgressChanged += SimulationHandler_ProgressChanged; m_mainForm.SimulationHandler.StateChanged += SimulationHandler_StateChanged; logLevelStripComboBox.Items.AddRange(Enum.GetNames(typeof(MyLogLevel))); logLevelStripComboBox.SelectedIndexChanged += logLevelStripComboBox_SelectedIndexChanged; logLevelStripComboBox.SelectedIndex = Properties.Settings.Default.LogLevel; }
internal static IEnumerable<DockContent> GetBrainSimUIExtensions(MainForm mainForm) { List<DockContent> result = new List<DockContent>(); foreach (Type test in GetBrainSimUIExtensionTypes()) { ConstructorInfo defaultCtor = test.GetConstructor(Type.EmptyTypes); ConstructorInfo mainformCtor = test.GetConstructor(new Type[] { typeof(MainForm) }); if (mainformCtor != null) result.Add((DockContent)mainformCtor.Invoke(new object[] { mainForm })); else if (defaultCtor != null) result.Add((DockContent)defaultCtor.Invoke(new object[] { })); } return result; }
public TextEditForm(MainForm mainForm, IScriptableNode target) { InitializeComponent(); //Icon = Properties.Resources.TextDoc; m_mainForm = mainForm; Target = target; Text = target.Name; SetupEditorStyle(); scintilla.Text = Target.Script; scintilla.TextChanged += scintilla_TextChanged; scintilla.HandleDestroyed += scintilla_HandleDestroyed; scintilla.HandleCreated += scintilla_HandleCreated; }
public NodePropertyForm(MainForm mainForm) { m_mainForm = mainForm; InitializeComponent(); propertyGrid.BrowsableAttributes = new AttributeCollection(new MyBrowsableAttribute()); }
public MemoryBlocksForm(MainForm mainForm) { InitializeComponent(); m_mainForm = mainForm; }
public TaskForm(MainForm mainForm) { m_mainForm = mainForm; InitializeComponent(); }
public SchoolRunForm(MainForm mainForm) { // school main form // m_serializer = new YAXSerializer(typeof(PlanDesign)); m_mainForm = mainForm; //RunView = new SchoolRunForm(m_mainForm); InitializeComponent(); m_model = new TreeModel(); treeViewLTList.Model = m_model; treeViewLTList.Refresh(); if (!String.IsNullOrEmpty(Properties.School.Default.AutosaveFolder)) btnAutosave.Checked = Properties.School.Default.AutosaveEnabled; else btnAutosave.Checked = false; m_lastOpenedFile = Properties.School.Default.LastOpenedFile; LoadCurriculum(m_lastOpenedFile); // school run form // // here so it does not interfere with designer generated code btnRun.Click += m_mainForm.runToolButton_Click; btnStop.Click += m_mainForm.stopToolButton_Click; btnPause.Click += m_mainForm.pauseToolButton_Click; btnStepOver.Click += m_mainForm.stepOverToolButton_Click; btnDebug.Click += m_mainForm.debugToolButton_Click; m_mainForm.SimulationHandler.StateChanged += SimulationHandler_StateChanged; m_mainForm.SimulationHandler.ProgressChanged += SimulationHandler_ProgressChanged; m_mainForm.WorldChanged += m_mainForm_WorldChanged; nodeTextBox1.DrawText += nodeTextBox1_DrawText; m_model.NodesChanged += ModelChanged; m_model.NodesInserted += ModelChanged; m_model.NodesRemoved += ModelChanged; WorkspaceChanged += SchoolRunForm_WorkspaceChanged; SchoolRunForm_WorkspaceChanged(null, EventArgs.Empty); }