Esempio n. 1
0
        public MainWindow(PgMessengerPlugin plugin)
        {
            try
            {
                InitializeComponent();
                DataContext = this;

                Plugin         = plugin;
                Settings       = Plugin.Settings;
                LastClosedTime = DateTime.MinValue;

                ResourceLoader.LoadIcon("main.ico", string.Empty, out ImageSource MainIcon);
                Icon = MainIcon;

                InitLocation();
                InitSettings();
                InitLogEntries();
            }
            catch
            {
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="App"/> class.
 /// </summary>
 public App()
 {
     Plugin    = new PgMessengerPlugin();
     PluginApp = new TaskbarIconHost.App(this, Plugin, Plugin.AssemblyName);
 }