public MainForm(DrawingSettings settings, CloudProcessor cloud, IGuiAction[] actions) { ClientSize = settings.Size; var mainMenu = new MenuStrip(); mainMenu.Items.AddRange(actions.ToMenuItems()); Controls.Add(mainMenu); cloud.Dock = DockStyle.Fill; Controls.Add(cloud); }
public NewFileAction(CloudProcessor imageProcessor) { this.imageProcessor = imageProcessor; }
public DrawingSettingsAction(DrawingSettings settings, CloudProcessor imageProcessor) { this.settings = settings; this.imageProcessor = imageProcessor; }
public SaveImageAction(CloudProcessor imageProcessor) { this.imageProcessor = imageProcessor; }
public ClouderSettingsAction(CloudSettings settings, CloudProcessor imageProcessor) { this.settings = settings; this.imageProcessor = imageProcessor; }