Beispiel #1
0
 public MainFormEx(bool isVisible)
 {
     InitializeComponent();
     this.Width = Properties.Settings.Default.Width;
     this.Height = Properties.Settings.Default.Height;
     this.Top = Properties.Settings.Default.Top;
     this.Left = Properties.Settings.Default.Left;
     if (!UiUtils.IsOnScreen(this))
         UiUtils.CenterWindow(this);
     this.isVisible = isVisible;
     inputData = new MainViewModel();
     this.DataContext = inputData;
 }