private void Command_Fire(Command command) { gsfactory_snapshot = gsfactory; foreach (Instruction.Task task in command.Generate_Task_Sequence().tasks) { Command_Execute(command, task); } command.PlaySound(); }
private void Initialize_GUIState_Factory() { ComponentState <RichTextBox> name_box_state = new ComponentState <RichTextBox>(name_rtb, new Status(Component_Assembly.UNFILLED)); ComponentState <RichTextBox> temp_box_state = new ComponentState <RichTextBox>(temp_rtb, new Status(Component_Assembly.UNFILLED)); ComponentState <Button> dictate_btn_state = new ComponentState <Button>(dictate_btn, new Status(Component_Assembly.UNCLICKED)); ComponentState <Button> clear_btn_state = new ComponentState <Button>(clear_btn, new Status(Component_Assembly.UNCLICKED)); ComponentState <Button> send_btn_state = new ComponentState <Button>(send_btn, new Status(Component_Assembly.UNCLICKED)); ComponentState <Email> email_state = new ComponentState <Email>(email, new Status(Component_Assembly.OFF)); ComponentState <Log> tempLog_state = new ComponentState <Log>(tempLog, new Status(Component_Assembly.OFF)); gsfactory = new GUIState_Factory(name_box_state, temp_box_state, dictate_btn_state, clear_btn_state, send_btn_state, email_state, tempLog_state); }