示例#1
0
        private void Close_Click(object sender, RoutedEventArgs e)
        {
            if (MyXml.GetXmlValue("CloseShow") == "true")
            {
                if (MyXml.GetXmlValue("CloseStyle") == "Mini")
                {
                    this.ShowInTaskbar = false;
                    this.Visibility    = Visibility.Collapsed;
                }
                else
                {
                    this.notifyIcon.Visible = false;
                    this.Close();
                }
            }
            else
            {
                Ask ask = new Ask();
                ask.ShowDialog();
                if (MyXml.GetXmlValue("CloseStyle") == "Mini")
                {
                    this.ShowInTaskbar = false;
                    this.Visibility    = Visibility.Collapsed;
                }
                else
                {
                    this.notifyIcon.Visible = false;
                    this.Close();
                }
            }

            //this.Close();
            //this.ShowInTaskbar = false;
            //this.Visibility = Visibility.Collapsed;
        }
示例#2
0
        public static string EnterString   = " ";                 // 定义换行文本

        /// <summary>
        /// 更新API Key   Secret Key
        /// </summary>
        public static void Update()
        {
            clientId     = MyXml.GetXmlValue("API_Key");
            clientSecret = MyXml.GetXmlValue("Secret_Key");
        }