Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            LoadStyle();

            cb_banlist.ItemsSource = FormExecution.GetBanlists().Keys.ToArray();

            cb_banlist.SelectedIndex     = 0;
            cb_dueltype.SelectedIndex    = 0;
            tb_handcard.Text             = "5";
            tb_lpstartduel.Text          = "8000";
            cb_masterrules.SelectedIndex = 0;
            tb_drawcount.Text            = "1";
            chb_shuffledeck.IsChecked    = false;
        }
Exemplo n.º 2
0
        public ShadowDuel(DuelRequestAdministrator admin, int id)
        {
            InitializeComponent();
            _admin          = admin;
            _id             = id;
            this.MaxHeight  = SystemParameters.MaximizedPrimaryScreenHeight;
            this.MouseDown += Window_MouseDown;

            rb_BP.IsChecked = true;
            _bettype        = BetType.BPs;

            rb_BP.Checked   += Rb_BP_Checked;
            rb_ban.Checked  += Rb_ban_Checked;
            rb_mute.Checked += Rb_mute_Checked;

            cb_dueltype.Items.Add(RoomType.Single);
            cb_dueltype.Items.Add(RoomType.Match);

            cb_masterrules.Items.Add("MR5 (Avril 2020)");
            cb_masterrules.Items.Add("MR4 (Link)");
            cb_masterrules.Items.Add("MR3 (Pendules)");
            cb_masterrules.Items.Add("MR2 (Synchro/XYZ)");
            cb_masterrules.Items.Add("MR1 (Basique)");

            cb_banlist.ItemsSource = FormExecution.GetBanlists().Keys.ToArray();

            cb_banlist.SelectedIndex     = 0;
            cb_dueltype.SelectedIndex    = 0;
            tb_handcard.Text             = "5";
            tb_lpstartduel.Text          = "8000";
            cb_masterrules.SelectedIndex = 0;
            tb_drawcount.Text            = "1";
            chb_shuffledeck.IsChecked    = false;

            btnChoose.MouseLeftButtonDown += BtnChoose_MouseLeftButtonDown;
            btnSend.MouseLeftButtonDown   += BtnSend_MouseLeftButtonDown;

            LoadStyle();
        }