Example #1
0
 public EditorConfigViewModel(
     IEditorConfiguration editorConfiguration,
     IEditorLanguage editorLanguage)
 {
     EditorConfiguration = editorConfiguration;
     EditorLanguage      = editorLanguage;
 }
Example #2
0
 /// <summary>
 /// Default constructor so we can initiate this from MEF
 /// </summary>
 public EditorDestination(
     ICoreConfiguration coreConfiguration,
     IGreenshotLanguage greenshotLanguage,
     EditorFactory editorFactory,
     IEditorLanguage editorLanguage) : base(coreConfiguration, greenshotLanguage)
 {
     _editorFactory  = editorFactory;
     _editorLanguage = editorLanguage;
 }
Example #3
0
 public EditorDestination(
     ICoreConfiguration coreConfiguration,
     IGreenshotLanguage greenshotLanguage,
     EditorFactory editorFactory,
     IEditorLanguage editorLanguage,
     IImageEditor editor) : this(coreConfiguration, greenshotLanguage, editorFactory, editorLanguage)
 {
     _editorFactory = editorFactory;
     _editor        = editor;
 }
Example #4
0
        public ResizeSettingsForm(ResizeEffect effect, IEditorLanguage editorLanguage, IGreenshotLanguage greenshotLanguage) : base(greenshotLanguage)
        {
            _effect = effect;
            InitializeComponent();
            var valuePixel = editorLanguage.EditorResizePixel;

            _valuePercent = editorLanguage.EditorResizePercent;
            combobox_width.Items.Add(valuePixel);
            combobox_width.Items.Add(_valuePercent);
            combobox_width.SelectedItem = valuePixel;
            combobox_height.Items.Add(valuePixel);
            combobox_height.Items.Add(_valuePercent);
            combobox_height.SelectedItem = valuePixel;

            textbox_width.Text  = effect.Width.ToString();
            textbox_height.Text = effect.Height.ToString();
            _newWidth           = effect.Width;
            _newHeight          = effect.Height;
            combobox_width.SelectedIndexChanged  += Combobox_SelectedIndexChanged;
            combobox_height.SelectedIndexChanged += Combobox_SelectedIndexChanged;

            checkbox_aspectratio.Checked = effect.MaintainAspectRatio;
        }
Example #5
0
 public EditorDestination(EditorFactory editorFactory, IEditorLanguage editorLanguage, IImageEditor editor) : this(editorLanguage)
 {
     _editorFactory = editorFactory;
     _editor        = editor;
 }
Example #6
0
 public EditorDestination(IEditorLanguage editorLanguage)
 {
     _editorLanguage = editorLanguage;
 }