Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Create = ((RPG.MainWindow)(target));
                return;

            case 2:
                this.cbClass = ((System.Windows.Controls.ComboBox)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.cbClass.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbClass_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.tbName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.Create1 = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.Create1.Click += new System.Windows.RoutedEventHandler(this.Create1_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public static MainWindow GetInstance()
 {
     return _instance ?? (_instance = new MainWindow());
 }
Exemple #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((RPG.MainWindow)(target));
                return;

            case 2:
                this.tab_control = ((System.Windows.Controls.TabControl)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.tab_control.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Tab_control_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.tab_me = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.tb_name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.photo = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.gb_general = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 7:
                this.tb_general = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.gr_abilities = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 9:
                this.tb_abilities = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.tb_text_gender = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 12:
                this.tb_gender = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.tb_age = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.tab_settings = ((System.Windows.Controls.TabItem)(target));
                return;

            case 15:
                this.btn_apply_settings = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.btn_apply_settings.Click += new System.Windows.RoutedEventHandler(this.Btn_apply_settings_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.tb_text_sett_name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.tb_sett_name = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.tb_text_sett_age = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.tb_sett_age = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.tb_text_sett_gender = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.cb_sett_gender = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 22:
                this.tb_text_sett_skillpoints = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.tb_sett_skillpoints = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.tb_text_sett_strength = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.tb_text_sett_intellect = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.sl_strength = ((System.Windows.Controls.Slider)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.sl_strength.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Sl_strength_ValueChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.sl_intellect = ((System.Windows.Controls.Slider)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.sl_intellect.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Sl_intellect_ValueChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.tb_text_sett_photo = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.btn_load_photo = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.btn_load_photo.Click += new System.Windows.RoutedEventHandler(this.Btn_load_photo_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.tb_text_sett_stamina = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.sl_stamina = ((System.Windows.Controls.Slider)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.sl_stamina.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Sl_stamina_ValueChanged);

            #line default
            #line hidden
                return;

            case 32:
                this.tb_text_sett_dexterity = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.sl_dexterity = ((System.Windows.Controls.Slider)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.sl_dexterity.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Sl_dexterity_ValueChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.tb_text_sett_luck = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.sl_luck = ((System.Windows.Controls.Slider)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.sl_luck.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Sl_luck_ValueChanged);

            #line default
            #line hidden
                return;

            case 36:
                this.tab_fight = ((System.Windows.Controls.TabItem)(target));
                return;

            case 37:
                this.btn_fight = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.btn_fight.Click += new System.Windows.RoutedEventHandler(this.Btn_fight_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.grid_fight = ((System.Windows.Controls.Grid)(target));
                return;

            case 39:
                this.img_fight_hero = ((System.Windows.Controls.Image)(target));
                return;

            case 40:
                this.img_fight_enemy = ((System.Windows.Controls.Image)(target));
                return;

            case 41:
                this.tb_fight_name_hero = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.tb_fight_name_enemy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.pb_fight_hero_hp = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 44:
                this.tb_fight_hero_hp = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.pb_fight_hero_mana = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 46:
                this.tb_fight_hero_mana = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.cb_figth_abilities = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 48:
                this.cbi_attack = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 49:
                this.cbi_strong_attack = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 50:
                this.btn_figth_apply_ability = ((System.Windows.Controls.Button)(target));

            #line 121 "..\..\MainWindow.xaml"
                this.btn_figth_apply_ability.Click += new System.Windows.RoutedEventHandler(this.Btn_figth_apply_ability_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.pb_fight_enemy_hp = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 52:
                this.tb_fight_enemy_hp = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 53:
                this.pb_fight_enemy_mana = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 54:
                this.tb_fight_enemy_mana = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.lb_fight_log = ((System.Windows.Controls.ListBox)(target));
                return;

            case 56:
                this.tb_fight_log = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 57:
                this.tb_figth_hero_abilities = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 58:
                this.tb_figth_enemy_abilities = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public MainWindow()
 {
     _instance = this;
     InitializeComponent();
     _controller = new Controller.Controller(GameCanvas);
 }