public AddinManagerWindow()
        {
            InitializeComponent();
            mmApp.SetThemeWindowOverride(this);

            Loaded     += AddinManagerWindow_Loaded;
            DataContext = this;

            oldBgColor = StatusText.Background;

            StatusBar = new StatusBarHelper(StatusText, StatusIcon);
        }
        public GitCommitDialog(string fileOrPath, bool commitRepo = false)
        {
            InitializeComponent();
            AppModel = mmApp.Model;

            CommitModel = new GitCommitModel(fileOrPath, commitRepo);
            if (!commitRepo)
            {
                CommitModel.CommitMessage = $"Update {System.IO.Path.GetFileName(fileOrPath)}";
            }

            CommitModel.CommitWindow = this;

            mmApp.SetThemeWindowOverride(this);

            Owner   = AppModel.Window;
            Loaded += GitCommitDialog_Loaded;

            StatusBar = new StatusBarHelper(StatusText, StatusIcon);
        }
        public PasteImageWindow(MainWindow window)
        {
            InitializeComponent();

            Owner       = window;
            DataContext = this;

            mmApp.SetThemeWindowOverride(this);

            Loaded         += PasteImage_Loaded;
            SizeChanged    += PasteImage_SizeChanged;
            Activated      += PasteImage_Activated;
            PreviewKeyDown += PasteImage_PreviewKeyDown;


            Model    = window.Model;
            Editor   = Model.ActiveEditor;
            Document = Model.ActiveDocument;

            StatusBar = new StatusBarHelper(StatusText, StatusIcon);
        }