Exemplo n.º 1
0
        public MainWindow()
        {
            Self = this;

            InitializeComponent();
            Statics.InitStaticData();
            MeldiiSettings.Self.Load();

            // Admin Check
            if (Statics.NeedAdmin())
                Statics.RunAsAdmin(Statics.LaunchArgs);

            this.AddHandler(MetroWindow.DragOverEvent, new DragEventHandler(OnFileDragOver), true);
            this.AddHandler(MetroWindow.DropEvent, new DragEventHandler(OnFileDrop), true);
        }