Пример #1
0
        public void Welcome()
        {
            DialogResult dr;

            Database.Database db = new Database.Database();

            if (!GlobalHelper.appSettings.IsAppConfigExists())
            {
                dr = MessageBox.Show(
                    "Looks like it's your first time to use Multi Remote Desktop Client .Net!\r\n\r\nThe application created a default password for you called \"pass\".\r\nDo you like to update your password now?",
                    this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question
                    );

                if (dr == DialogResult.Yes)
                {
                    // call our toolbar_Configuration event method.
                    this.toolbar_Configuration_Click(this.toolbar_Configuration, null);
                }

                // create our new database schema and default datas
                db.ResetDatabase();
            }

            db.Delete(false);
            db = null;
        }
Пример #2
0
        public void Welcome()
        {
            DialogResult dr;

            Database.Database db = new Database.Database();

            if (!GlobalHelper.appSettings.IsAppConfigExists())
            {
                dr = MessageBox.Show(
                    "Looks like it's your first time to use Multi Remote Desktop Client .Net!\r\n\r\nThe application created a default password for you called \"pass\".\r\nDo you like to update your password now?",
                    this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question
                );

                if (dr == DialogResult.Yes)
                {
                    // call our toolbar_Configuration event method.
                    this.toolbar_Configuration_Click(this.toolbar_Configuration, null);
                }

                // create our new database schema and default datas
                db.ResetDatabase();
                
            }

            db.Delete(false);
            db = null;
        }
Пример #3
0
 public int DeletarCotacao(Cotacao cotacao) => _db.Delete(cotacao);