Ejemplo n.º 1
0
        //private readonly string CityXmlPath = @"Back\Cities.xml"; //城市代码XML
        private void btnOk_Click(object sender, EventArgs e)
        {
            string area = txtCode.Text.Trim();

            Weather.Location = Weather.LoactionPoint = Xy;
            this.Close();
            Weather.BaseShow();
            Weather.Special = false;
            Weather.TimShow(true);
        }
Ejemplo n.º 2
0
 private void btnTq_MouseLeave(object sender, EventArgs e)
 {
     if (frmWeather != null && !frmWeather.IsDisposed)
     {
         //设置窗体已释放
         if (frmWeather.frm == null || frmWeather.frm.IsDisposed)
         {
             frmWeather.IsFMove = true;
             frmWeather.TimShow(true);
         }
     }
 }