public FormInit(Main wmain) { InitializeComponent(); this.wmain = wmain; this.StartPosition = FormStartPosition.CenterScreen; comboBoxLanguage.SelectedIndex = 0; }
public FormSounds(Main wmain, String[] sounds, Boolean[] repeat) { InitializeComponent(); textBoxSoundStopLoss.Text = sounds[0]; textBoxSoundStopTime.Text = sounds[1]; textBoxSoundStopWin.Text = sounds[2]; textBoxSoundStopHands.Text = sounds[3]; checkBoxRepeatLoss.Checked = repeat[0]; checkBoxRepeatTime.Checked = repeat[1]; checkBoxRepeatWin.Checked = repeat[2]; checkBoxrepeatHands.Checked = repeat[3]; this.wmain = wmain; }
public FormDownloadUpdate(Main wmain, Uri url, Double nv, Double ov) { InitializeComponent(); fmain = wmain; this.url = url; if (nv.ToString().Length > 3) { this.nv = nv.ToString().Replace(',', '.'); } else { this.nv = nv.ToString().Replace(',', '.') + "0"; } this.ov = ov; labelDownloaded.Text = "-- MB's / -- MB's"; labelSpeed.Text = "-- kb/s"; labelPerc.Text = "-- %"; }
public Stoploss(Main wmain, List<Tuple<String,String>> playerid, Db db, String[] data, Boolean[] checkb, Int32 limit, Int32 snooze, String[] sound, int tracker, Double lastbbsumstart, Int64 idlasthand) { try { InitializeComponent(); this.wmain = wmain; playeridname = playerid; dbase = db; //data //0 - stoploss //1- stophand //2 - stoptime //3 - stopwin //4 - stoplosspeak //5 - peakover //6 - lossintermediate //7 - winintermediate //8 - vpp //9 - rake //10 - stoplossintermediatemoney //11 - stoplossmoney //12 - 0: eur, 1: usd nao utilizo mais esse this.stoploss = new Utils().stringtoDouble(data[0]); handstop = new Utils().stringtoInt64(data[1]); timestop = new Utils().stringtoInt32(data[2]); stopwin = new Utils().stringtoDouble(data[3]); bbpeak = new Utils().stringtoDouble(data[4]); this.peakover = new Utils().stringtoDouble(data[5]); lossintermediate = new Utils().stringtoDouble(data[6]); winintermediate = new Utils().stringtoDouble(data[7]); stopvpp = new Utils().stringtoDouble(data[8]); stoprake = new Utils().stringtoDouble(data[9]); stoplossmoney = new Utils().stringtoDouble(data[11]); stoplossintermediatemoney = new Utils().stringtoDouble(data[10]); //typemoney = new Utils().stringtoInt32(data[12]); this.tracker = tracker; sounds = sound; blocklimit = limit; //checkb //0 - hidebb //1 - button set //2 - verify app //3 - rage quit //4 - snooze //5 - repeatwin //6 - repeatloss //7 - repeathand //8 - repeattime //9 - timerstart 1ª mão //10 - always visible bb //11 - viewvpp //12 - ragequitSL this.hidebb = checkb[0]; if (hidebb) { labelBb.Enabled = false; labelBb.Visible = false; } //visible bb this.visiblealwaysbb = checkb[10]; if (!hidebb && visiblealwaysbb) { labelBb.Visible = true; } buttonSet.Visible = checkb[1]; loadconfig(); //cronometro starttime = checkb[9]; if (!checkb[9]) { startcrono = new Thread(new ThreadStart(this.stoptimer)); startcrono.Start(); } //calculo dos BB e hands startbb = new Thread(new ThreadStart(this.calculateBB)); startbb.Start(); //verify app verapp = checkb[2]; if (verapp) { startapp = new Thread(new ThreadStart(this.verifyApp)); startapp.Start(); } buttonRageQuit.Visible = checkb[3]; repeatwin = checkb[5]; repeatloss = checkb[6]; repeathand = checkb[7]; repeattime = checkb[8]; snoozeb = checkb[4]; viewvpp = checkb[11]; ragequitSL = checkb[12]; snoozeminute = snooze; buttonSnooze.Visible = false; lastbbsum = lastbbsumstart; lastidhandload = idlasthand; //view vpp if (viewvpp) { //original size 212,123 this.Size = new Size(212,147); //inserir o labeltext dos vpp LabelViewVpp = new Label(); LabelViewVpp.Location = new Point(9, 40); //LabelViewVpp.Text = "100vpp"; LabelViewVpp.Size = new Size(90, 25); LabelViewVpp.ForeColor = Color.Blue; LabelViewVpp.Font = new Font("Microsoft Sans Serif", 10, System.Drawing.FontStyle.Bold); this.Controls.Add(LabelViewVpp); } } catch (Exception e) { new Debug().LogMessage("method main stoploss: " + e.ToString()); } }