Exemple #1
0
        private void buttonAddSession_Click(object sender, EventArgs e)
        {
            AddSessionForm form = new AddSessionForm();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                new Session(form.SessionName, form.Hostname, form.Port).Serialize();

                Core.Instance().Refresh();
                this.UpdateSessions();
            }
        }
        private void buttonAddSession_Click(object sender, EventArgs e)
        {
            AddSessionForm form = new AddSessionForm();
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                new Session(form.SessionName, form.Hostname, form.Port).Serialize();

                Core.Instance().Refresh();
                this.UpdateSessions();
            }
        }