private void checkBoxToolPrices_CheckedChanged(object sender, EventArgs e) { buttonBotSettings.Enabled = checkBoxToolPrices.Checked; if (!buttonBotSettings.Enabled && !botSettings.IsDisposed) { botSettings.Hide(); } checkBoxMyStock.Enabled = checkBoxToolPrices.Checked; }
private void buttonSettings_Click(object sender, EventArgs e) { if (settingsWindow.Visible) { settingsWindow.Hide(); } else { settingsWindow.Show(this); } }
private void buttonSettings_Click(object sender, EventArgs e) { if (settingsWindow.IsDisposed) { settingsWindow = new UpdatePriceSettings("LastSettingsPreset", "Settings of Update Price"); } if (settingsWindow.Visible) { settingsWindow.Hide(); } else { settingsWindow.Show(this); } }