public Exception(System.Exception ex)
        {
            InitializeComponent();
            DwmDropShadow.DropShadowToWindow(this);

            lblContent.Text = ex.ToString();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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();
 }
Exemple #7
0
        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);
        }
Exemple #9
0
        public EditGroupWindow(ChatGroupUiInfo group)
        {
            InitializeComponent();

            DwmDropShadow.DropShadowToWindow(this);

            DataContext = new EditGroupWindowVM(this, group);
        }
Exemple #10
0
        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);
        }
Exemple #14
0
        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);
        }
Exemple #16
0
        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);
        }
Exemple #18
0
        public MainWindow()
        {
            InitializeComponent();
            DwmDropShadow.DropShadowToWindow(this);
            Settings.homeWindow = this;


            Window_StateChanged(null, null);
        }
Exemple #19
0
        public About()
        {
            InitializeComponent();
            DwmDropShadow.DropShadowToWindow(this);

            string version = VariousFunctions.GetApplicationVersion();

            lblTitle.Text = lblTitle.Text.Replace("{version}", version);
        }
Exemple #20
0
        public EnginePicker(string path, List <EngineDescription> engines)
        {
            Engines = engines;
            InitializeComponent();
            DwmDropShadow.DropShadowToWindow(this);
            txtMapName.Text     = Path.GetFileName(path);
            listbox.ItemsSource = Engines;

            Activate();
        }
Exemple #21
0
        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);
        }
Exemple #22
0
        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;
        }
Exemple #24
0
        public Exception(System.Exception ex)
        {
            InitializeComponent();
            DwmDropShadow.DropShadowToWindow(this);
            _exception = ex;

            lblMessage.Text = ex.Message;
            lblContent.Text = ex.ToString();

            Activate();
        }
Exemple #25
0
        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);
        }
Exemple #27
0
        public MainWindow()
        {
            InitializeComponent();

            // Dropshadow
            DwmDropShadow.DropShadowToWindow(this);

            DataContext = _viewModel;

            // Setup Events
            StateChanged += Window_StateChanged;
            Window_StateChanged(this, null);
        }
Exemple #28
0
        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");
        }
Exemple #29
0
        public MessageMainWnd(User user)
        {
            InitializeComponent();

            DwmDropShadow.DropShadowToWindow(this);

            DataContext = new MessageMainVM(this, user);

            Init();

            MessageList = new List <BaseMessage>();

            LocationChanged += MessageMainWnd_LocationChanged;
            SizeChanged     += MessageMainWnd_LocationChanged;
        }
Exemple #30
0
        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");
        }