예제 #1
0
        private void slackSave_Click(object sender, EventArgs e)
        {
            try
            {
                String s = combobox_channels.SelectedItem.ToString();
                String id;

                ch_dict.TryGetValue(s, out id);

                Variables v = new Variables();

                Variables.slackCh = s;
                Variables.slackChId = id;
                Variables.slackOn = checkbox_enable.Checked;
                Variables.slackWSWarn = checkbox_ws_warn.Checked;
                Variables.slackModelWarn = checkbox_model_warn.Checked;
                Variables.slackBPWarn = checkbox_bp_warn.Checked;
                Variables.slackWSInfo = checkbox_ws_info.Checked;
                Variables.slackModelInfo = checkbox_model_info.Checked;
                Variables.slackBPInfo = checkbox_bp_info.Checked;
                Variables.slackExtraTrackPin = checkbox_extra_trackpin.Checked;
                Variables.giphySet = combobox_giphy.SelectedIndex;
                Variables.tidySet = combobox_tidy.SelectedIndex;
                Variables.slackToken = token;
             }
            catch
            {
                TaskDialog.Show("Slack Settings Error", "There is an issue with your token or channel selection.");
            }
        }
예제 #2
0
        private void slackSave_Click(object sender, EventArgs e)
        {
            try
            {
                String s = combobox_channels.SelectedItem.ToString();
                String id;

                ch_dict.TryGetValue(s, out id);

                Variables v = new Variables();

                Variables.slackCh = s;
                Variables.slackChId = id;
                Variables.slackOn = checkbox_enable.Checked;
                Variables.slackToken = token;
             }
            catch
            {
                TaskDialog.Show("Slack Settings Error", "There is an issue with your token or channel selection.");
            }
        }