private void liveDataToolStripMenuItem_Click(object sender, EventArgs e) { LiveData LD = null; if (this.MainView.SelectedItems[0].Text != "") { LD = new LiveData(this.MainView.SelectedItems[0].Text); } LD.Show(); }
private void OpenCalc(bool value) { DefautlVariables DVar = new DefautlVariables(); DVar.State = value; DVar.Stake = BetCalc.Properties.Settings.Default.DefaultStake; DVar.Opacity = BetCalc.Properties.Settings.Default.Transparency; DVar.ComBf = BetCalc.Properties.Settings.Default.CommBf; DVar.ComBook = BetCalc.Properties.Settings.Default.CommBook; System.Drawing.Color color = BetCalc.Properties.Settings.Default.Color1; DVar.BGBrush1 = new SolidColorBrush(System.Windows.Media.Color.FromRgb(color.R, color.G, color.B)); color = BetCalc.Properties.Settings.Default.Color2; DVar.BGBrush2 = new SolidColorBrush(System.Windows.Media.Color.FromRgb(color.R, color.G, color.B)); LD win = new LD(DVar); win.Show(); }
public void OpenWindow_LayDutch(bool state, double koef1 = 2, double koef2 = 2) { DefautlVariables DVar = new DefautlVariables(); DVar.State = state; DVar.Stake = FootballHedge.Properties.Settings.Default.DefaultStake; DVar.Opacity = FootballHedge.Properties.Settings.Default.Transparency; DVar.ComBf = 6.5; DVar.ComBook = 1; DVar.BGBrush1 = new SolidColorBrush(Colors.LightGray); DVar.BGBrush2 = new SolidColorBrush(Colors.LightBlue); DVar.koef1 = koef1; DVar.koef2 = koef2; LD win = new LD(DVar); win.Show(); }