public Form1() { InitializeComponent(); materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.DARK; materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); Text = "Wektor wersja " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; const string REGISTRY_KEY = @"HKEY_CURRENT_USER\Software\WektorApp"; const string REGISTY_VALUE = "FirstRun"; if (Convert.ToInt32(Microsoft.Win32.Registry.GetValue(REGISTRY_KEY, REGISTY_VALUE, 0)) == 0) { //komikat o potrzebie utworzenia nowego użytkownika MessageBox.Show("Teraz musisz utworzyć użytkownika i hasło!!!"); formsy.settings form = new formsy.settings(this); form.MdiParent = this; form.Show(); Microsoft.Win32.Registry.SetValue(REGISTRY_KEY, REGISTY_VALUE, 1, Microsoft.Win32.RegistryValueKind.DWord); } }
private void ustawieniaToolStripMenuItem_Click(object sender, EventArgs e) { formsy.settings form = new formsy.settings(this); //form.MdiParent = this; form.Show(); }