public Exception(System.Exception ex) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); lblContent.Text = ex.ToString(); }
public ViewValueAs(ICacheFile cacheFile, EngineDescription buildInfo, IStreamManager streamManager, IList <MetaField> fields, uint cacheOffset) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); _buildInfo = buildInfo; _streamManager = streamManager; _cacheFile = cacheFile; _fields = fields; _cacheOffsetOriginal = _cacheOffset = cacheOffset; _memOffset = _cacheFile.MetaArea.OffsetToPointer((int)_cacheOffset); // Set Textboxes txtOffset.Text = "0x" + _cacheOffset.ToString("X"); txtMemOffset.Text = "0x" + _memOffset.ToString("X"); txtMapName.Text = Path.GetFileName(_cacheFile.FilePath); txtMapName.ToolTip = _cacheFile.FilePath; // Load Meta panelMetaComponents.ItemsSource = _fields; RefreshMeta(); }
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { if (UserSettingStorage.Instance.WindowLeft == 0 && UserSettingStorage.Instance.WindowTop == 0) { Left = UserSettingStorage.Instance.WindowLeft = (SystemParameters.PrimaryScreenWidth - ActualWidth) / 2; Top = UserSettingStorage.Instance.WindowTop = (SystemParameters.PrimaryScreenHeight - ActualHeight) / 5; } else { Left = UserSettingStorage.Instance.WindowLeft; Top = UserSettingStorage.Instance.WindowTop; } Plugins.Init(); InitProgressbarAnimation(); //only works for win7+ if (UserSettingStorage.Instance.OpacityMode == OpacityMode.DWM) { DwmDropShadow.DropShadowToWindow(this); } this.Background = Brushes.Transparent; HwndSource.FromHwnd(new WindowInteropHelper(this).Handle).CompositionTarget.BackgroundColor = Color.FromArgb(0, 0, 0, 0); WindowIntelopHelper.DisableControlBox(this); }
public Home() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(CloseTab)); Settings.HomeWindow = this; UpdateTitleText("Home"); UpdateStatusText("Ready..."); //Window_StateChanged(null, null); ClearTabs(); AddTabModule(TabGenre.StartPage); // Set width/height/state from last session if (!double.IsNaN(Settings.ApplicationSizeHeight)) { Height = Settings.ApplicationSizeHeight; } if (!double.IsNaN(Settings.ApplicationSizeWidth)) { Width = Settings.ApplicationSizeWidth; } WindowState = Settings.ApplicationSizeMaximize ? WindowState.Maximized : WindowState.Normal; Window_StateChanged(null, null); }
public ForwardMessageWindow(BaseMessage message) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new ForwardMessageWindowVM(message, this); }
public TagBlockReallocator(TagBlockData block) { _block = block; _originalCount = block.Length; InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); InitBlockInformation(); }
public MessageBox(string title, string message) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); lblTitle.Text = title; lblSubInfo.Text = message; }
public CreateChatGroupWnd() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new CreateChatGroupWndVM(this); }
public EditGroupWindow(ChatGroupUiInfo group) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new EditGroupWindowVM(this, group); }
public ResetPassWindow() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new ResetPassWindowVM(this, this); }
public DataRefAllocator(DataRef field) { _field = field; _originalLength = field.Length; InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); InitInformation(); }
public SelectUsersWindow(ChatGroup group) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new SelectUsersWindowVM(this, group); }
public SettingsWindow() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new SettingsWindowVM(this); }
public ContactProfileWindow(User profile) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new ContactProfileWindowVM(this, profile); }
public MessageEditWindow(BaseMessage message) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new EditMessageVM(message, this); }
public PostGeneratorViewer(string bbcode, string author) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); txtGeneratedBBCode.Text = bbcode; lblTitle.Text = string.Format("Hey {0}, your post has been Generated.", author); }
public UserProfileWindow() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new UserProfileWindowVM(this); }
public MainWindow() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); Settings.homeWindow = this; Window_StateChanged(null, null); }
public About() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); string version = VariousFunctions.GetApplicationVersion(); lblTitle.Text = lblTitle.Text.Replace("{version}", version); }
public EnginePicker(string path, List <EngineDescription> engines) { Engines = engines; InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); txtMapName.Text = Path.GetFileName(path); listbox.ItemsSource = Engines; Activate(); }
public About() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); var friendlyVersion = VersionInfo.GetUserFriendlyVersion(); var versionStr = (friendlyVersion != null) ? friendlyVersion.ToString() : "(unknown version)"; lblTitle.Text = lblTitle.Text.Replace("{version}", versionStr); }
public MainWindow() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); MinimizeButton.Click += (s, e) => WindowState = WindowState.Minimized; CloseButton.Click += (s, e) => Close(); DataContext = new MainWindowVM(this, this); }
public PluginRevisionViewer(IList <PluginRevision> revisions, string pluginGroup) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); _revisions = revisions; _pluginGroup = pluginGroup; _pluginGroupDescription = string.Format("Revision history for the {0} plugin:", _pluginGroup); DataContext = this; }
public Exception(System.Exception ex) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); _exception = ex; lblMessage.Text = ex.Message; lblContent.Text = ex.ToString(); Activate(); }
public Contacts() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); App.LanguageChanged += AppOnLanguageChanged; DataContext = new ContatsWindowVM(this); Loaded += Contacts_Loaded; }
public ImgurUpload(string uploadString) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); _uploadString = uploadString; lblFriendlyLink.Text = string.Format("[url='http://imgur.com/{0}'][img]http://i.imgur.com/{0}.jpg[/img][/url]", _uploadString); lblEvilLink.Text = string.Format("[img]http://i.imgur.com/{0}.jpg[/img]", _uploadString); lblViewLink.Text = string.Format("http://imgur.com/{0}", _uploadString); lblDirectLink.Text = string.Format("http://i.imgur.com/{0}.jpg", _uploadString); }
public MainWindow() { InitializeComponent(); // Dropshadow DwmDropShadow.DropShadowToWindow(this); DataContext = _viewModel; // Setup Events StateChanged += Window_StateChanged; Window_StateChanged(this, null); }
public Home() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); Settings.HomeWindow = this; UpdateTitleText("Usermap Converter"); UpdateStatusText("Ready..."); Window_StateChanged(null, null); listboxFileQueue.ItemsSource = FileQueue; txtOutputFolder.Text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Output"); }
public MessageMainWnd(User user) { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); DataContext = new MessageMainVM(this, user); Init(); MessageList = new List <BaseMessage>(); LocationChanged += MessageMainWnd_LocationChanged; SizeChanged += MessageMainWnd_LocationChanged; }
public Home() { InitializeComponent(); DwmDropShadow.DropShadowToWindow(this); Settings.HomeWindow = this; UpdateTitleText("Usermap Converter"); UpdateStatusText("Ready..."); UsermapConversion.myHome = this; // Injects itself into that static property so the Conversion thing can update the status for debugging. Shoddy as f**k, I guess, but it works. Window_StateChanged(null, null); listboxFileQueue.ItemsSource = FileQueue; txtOutputFolder.Text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "maps"); }