예제 #1
0
 public void CreateNewProfile() {
     ProfileEdit dlg = new ProfileEdit(null);
     if (dlg.ShowDialog(Env.MainForm) == DialogResult.OK) {
         Env.Profiles.AddProfile(dlg.ResultProfile);
         Env.MainForm.RefreshAllProfiles();
     }
 }
예제 #2
0
        public void CreateNewProfile()
        {
            ProfileEdit dlg = new ProfileEdit(null);

            if (dlg.ShowDialog(Env.MainForm) == DialogResult.OK)
            {
                Env.Profiles.AddProfile(dlg.ResultProfile);
                Env.MainForm.RefreshAllProfiles();
            }
        }
예제 #3
0
        public void EditProfile(ChannelProfile prof) {
            if (Env.Connections.IsConnected(prof)) {
                Util.Warning(Env.MainForm, Env.Strings.GetString("Message.Commands.CannotEditConnectedProfile"));
                return;
            }

            ProfileEdit dlg = new ProfileEdit(prof);
            if (dlg.ShowDialog(Env.MainForm) == DialogResult.OK) {
                Env.Profiles.ReplaceProfile(prof, dlg.ResultProfile);
                Env.MainForm.RefreshAllProfiles();
            }
        }
예제 #4
0
        public void EditProfile(ChannelProfile prof)
        {
            if (Env.Connections.IsConnected(prof))
            {
                Util.Warning(Env.MainForm, Env.Strings.GetString("Message.Commands.CannotEditConnectedProfile"));
                return;
            }

            ProfileEdit dlg = new ProfileEdit(prof);

            if (dlg.ShowDialog(Env.MainForm) == DialogResult.OK)
            {
                Env.Profiles.ReplaceProfile(prof, dlg.ResultProfile);
                Env.MainForm.RefreshAllProfiles();
            }
        }