Exemple #1
0
        private void ListQuests_OnCreate(object sender)
        {
            ListQuests _database = sender as ListQuests;

            _database.OnLoad   += Database_OnLoad;
            _database.OnError  += Database_OnError;
            _database.OnAdd    += Database_OnAdd;
            _database.OnRemove += Database_OnRemove;
        }
Exemple #2
0
 private void newFile_Click(object sender, EventArgs e)
 {
     if (database != null)
     {
         IsNotSave();
     }
     saveFileDialog1.ShowDialog();
     if (saveFileDialog1.FileName == "")
     {
         return;
     }
     panelQuests.Enabled = true;
     database            = new ListQuests(saveFileDialog1.FileName);
 }
Exemple #3
0
        private void openFile_Click(object sender, EventArgs e)
        {
            if (database != null)
            {
                IsNotSave();
            }
            openFileDialog1.ShowDialog();
            if (openFileDialog1.FileName == "")
            {
                return;
            }

            database = new ListQuests(openFileDialog1.FileName);
            database.Load();
        }