Пример #1
0
        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);
        }
Пример #2
0
 public NewFileAction(CloudProcessor imageProcessor)
 {
     this.imageProcessor = imageProcessor;
 }
Пример #3
0
 public DrawingSettingsAction(DrawingSettings settings, CloudProcessor imageProcessor)
 {
     this.settings       = settings;
     this.imageProcessor = imageProcessor;
 }
Пример #4
0
 public SaveImageAction(CloudProcessor imageProcessor)
 {
     this.imageProcessor = imageProcessor;
 }
Пример #5
0
 public ClouderSettingsAction(CloudSettings settings, CloudProcessor imageProcessor)
 {
     this.settings       = settings;
     this.imageProcessor = imageProcessor;
 }