public void Save()
        {
            if (string.IsNullOrWhiteSpace(ExcelName))
            {
                MessageBox.Show("Please enter an Excel Name");
            }
            else if (string.IsNullOrWhiteSpace(TalkdeskName))
            {
                MessageBox.Show("Please enter a Talkdesk Name");
            }
            else
            {
                List <AgentMapping> userMappings = Properties.Settings.Default.UserMappings ?? new List <AgentMapping>();
                if (!_newMapping)
                {
                    userMappings.Remove(_editMapping);
                }

                AgentMapping userMapping = new AgentMapping()
                {
                    ExcelAgentName    = ExcelName,
                    TalkdeskAgentName = TalkdeskName
                };

                userMappings.Add(userMapping);
                Properties.Settings.Default.UserMappings = userMappings;
                _editMapping = userMapping;
                ActivateWindow.ViewAgentMapping();
            }
        }
Beispiel #2
0
 public ShellViewModel()
 {
     ActivateWindow.ShellView = this;
     ActivateWindow.ViewReports();
 }
 public void UserMapping()
 {
     ActivateWindow.ViewAgentMapping();
 }
 public void Back()
 {
     ActivateWindow.ViewReports();
 }
 public void Back()
 {
     ActivateWindow.ViewAgentMapping();
 }