private void новыйToolStripMenuItem_Click(object sender, EventArgs e) { gadgetData = new WheatherGadgetData(); cur_file = null; UpdateAll(); }
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; }