Beispiel #1
0
        private void btnCharacters_Click(object sender, EventArgs e)
        {
            frmCharacters frmChar = new frmCharacters();

            frmChar.initData();
            frmChar.ShowDialog(this);
            frmChar.Dispose();
        }
Beispiel #2
0
        private void LoadSelectedChar(object sender, EventArgs e)
        {
            SetMessage("Sender" + sender.ToString());
            SetMessage("Events" + e.ToString());
            CheckedListBox clb = sender as CheckedListBox;
            hostChar       c   = clb.SelectedItem as hostChar;

            if (c != null)
            {
                SetMessage("loaded Character" + c.ToString());
                frmCharacters frmChar = new frmCharacters();
                frmChar.Character  = c;
                frmChar.Database   = this.Database;
                frmChar.Repository = this.Repository;
                frmChar.initData();
                frmChar.ShowDialog(this);
                frmChar.Dispose();
            }
        }