Пример #1
0
 private void новыйToolStripMenuItem_Click(object sender, EventArgs e)
 {
     gadgetData = new WheatherGadgetData();
     cur_file = null;
     UpdateAll();
 }
Пример #2
0
 private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         gadgetData =
         ConfigSerializer.Deserialize<WheatherGadgetData>(openFileDialog1.FileName);
         cur_file = openFileDialog1.FileName;
         UpdateAll();
     }
 }
 public GadgetWheatherProcessor(WheatherGadgetData data)
 {
     this.data = data;
     ConnectionString = data.ConnectionString;
 }