public void clear_postbox(bool dontDetectTab = false) { AppController.Current.account.updateItems(); currentPostTarget = new CurrentPostTarget(); textbox_postText.textBoxContent.Text = ""; textblock_composeOverlay.Text = ""; image_addImage.Opacity = 0.6; updateCurrentTarget(dontDetectTab); }
public MainWindow() { InitializeComponent(); this.PreviewKeyDown += MainWindow_KeyDown; combobox_language.ItemsSource = AppController.available_languages; currentPostTarget = new CurrentPostTarget(); if (Properties.Settings.Default.windowHeight > 0 && Properties.Settings.Default.windowWidth > 0) { this.Height = Properties.Settings.Default.windowHeight; this.Width = Properties.Settings.Default.windowWidth; // gibt es nicht in .NET 4.5 ? // if (Properties.Settings.Default.windowLocationX < System.Windows.Forms.SystemInformation.Width && Properties.Settings.Default.windowLocationY < System.Windows.Forms.SystemInformation.VirtualScreen.Height) // { this.Left = Properties.Settings.Default.windowLocationX; this.Top = Properties.Settings.Default.windowLocationY; // } } init_completed = true; }