Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     SplashScreen SpLoader = new SplashScreen();
     SpLoader.Show();
     Thread.Sleep(2000);
     SpLoader.Hide();
     win.Show ();
     Application.Run ();
 }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            Application.Init ();
            MainWindow win = new MainWindow ();
            //Thread.Sleep(2000);
            win.Show ();

            Application.Run ();
            //			Thread T0 = new Thread(new ThreadStart(popup));
            //			T0.Start();
            //			Thread T = new Thread(new ThreadStart(SpLoader));
            //			T.Start();
        }
Ejemplo n.º 3
0
        //[System.Diagnostics.DebuggerNonUserCodeAttribute()]
        //[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
        public static void Main()
        {
            Program app = new Program();
            app.InitializeComponent();
            // Launcher.App app = new Launcher.App();
            // app.InitializeComponent();
            // app.Run();
            
            aw = new AuthWindow();
            rw = new RegWindow();
            mw = new MainWindow();
            Auth auth = new Auth();
            IMessageService service = new MessageService();
            MainPresenter mainPresenter = new MainPresenter(auth, aw, service, rw, mw);

            app.Run(mw);
        }
Ejemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Launcher.MainWindow)(target));
                return;

            case 2:
                this.TaskbarProgress = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.TaskbarPlay = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.TaskbarPlay.Click += new System.EventHandler(this.TaskbarPlay_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.MainGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.btn_close = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.btn_close.Click += new System.Windows.RoutedEventHandler(this.btn_close_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_min = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.btn_min.Click += new System.Windows.RoutedEventHandler(this.btn_min_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btn_settings = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.btn_settings.Click += new System.Windows.RoutedEventHandler(this.btn_settings_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.version = ((System.Windows.Controls.Label)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.version.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.version_MouseDown);

            #line default
            #line hidden
                return;

            case 9:
                this.news_box = ((Launcher.NewsLoaderControl)(target));
                return;

            case 10:
                this.contentNewsLoadIndicator = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.newsLoadIndicator = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.NewsBox = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 14:
                this.DownloadBar = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.labelprogress = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.totalProgressGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.progress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 18:
                this.currentProgressGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.progress_file = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 20:
                this.labelmsg = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.btn_play = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.btn_play.Click += new System.Windows.RoutedEventHandler(this.btn_play_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.link_main = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.link_main.Click += new System.Windows.RoutedEventHandler(this.link_main_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.link_cabinet = ((System.Windows.Controls.Button)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.link_cabinet.Click += new System.Windows.RoutedEventHandler(this.link_cabinet_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.link_registration = ((System.Windows.Controls.Button)(target));

            #line 143 "..\..\MainWindow.xaml"
                this.link_registration.Click += new System.Windows.RoutedEventHandler(this.link_registration_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.link_social = ((System.Windows.Controls.Button)(target));

            #line 144 "..\..\MainWindow.xaml"
                this.link_social.Click += new System.Windows.RoutedEventHandler(this.link_social_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((Launcher.MainWindow)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 8 "..\..\MainWindow.xaml"
     this.Window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.Dota2lsButton = ((System.Windows.Controls.Button)(target));
     return;
     case 5:
     this.richTextBox = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 6:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.richTextBox1 = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 8:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.richTextBox_Copy = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 10:
     this.AgeBotButton = ((System.Windows.Controls.Button)(target));
     return;
     case 11:
     this.label1_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.richTextBox1_Copy = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 13:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.richTextBox_Copy1 = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 15:
     this.PerfectBotButton = ((System.Windows.Controls.Button)(target));
     return;
     case 16:
     this.label1_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.richTextBox1_Copy1 = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 18:
     this.ToggleLogIn = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 6
0
        public SettingWindow(MainWindow mainWindow) : this()
        {
            this.mainWindow = mainWindow;

            Init();
        }