//최초 로딩 시 private void Dalsae_Loded(object sender, RoutedEventArgs e) { gridPreview.Visibility = Visibility.Hidden; gridPreview.Background = new SolidColorBrush(Color.FromRgb(255, 255, 255)); DalsaeInstence.LoadedMainWindow(); foreach (TreeViewManager item in dicPanel.Values) { ScrollViewer scroll = Generate.FindElementByName <ScrollViewer>(item.treeView); item.scrollViewer = scroll; } imageHome.Source = bitmapHome; imageMention.Source = bitmapMention; imageDm.Source = bitmapDM; imageFav.Source = bitmapFav; imageOpen.Source = bitmapOpen; if (FileInstence.isPatched) { MessageBoxResult mr = MessageBox.Show(this, $"달새의 오류를 자동으로 전송 하시겠습니까?{Environment.NewLine}차후 패치까지 적용 됩니다.{Environment.NewLine}어려분의 오류 보고가 달새를 더 안정적으로 만듭니다.", "알림", MessageBoxButton.YesNo, MessageBoxImage.Information); if (mr == MessageBoxResult.Yes) { DataInstence.option.isSendError = true; } else { DataInstence.option.isSendError = false; } FileInstence.UpdateOption(DataInstence.option); } }
private void SaveWindowSizeAndLocation() { if (WindowState != WindowState.Maximized && WindowState != WindowState.Minimized) { DataInstence.SetMainWindowLocation(Left, Top, Width, Height); FileInstence.UpdateOption(DataInstence.option); } }
private void buttonOk_Click(object sender, RoutedEventArgs e) { Save(); FileInstence.UpdateOption(DataInstence.option); Close(); }