Пример #1
0
 private void Ok_Click(object sender, RoutedEventArgs e) {
     try
     {
         GSM_Abon.P = Double.Parse(P.Text);
     }
     catch (Exception)
     {
     }
     try
     {
         GSM_Abon.G = Double.Parse(G.Text);
     }
     catch (Exception)
     {
     }
     try
     {
         GSM_Abon.Lf = Double.Parse(L.Text);
     }
     catch (Exception)
     {
     }
     this.Close();
     instance = null;
 }
Пример #2
0
        public static GSM_Abon_Params GetGSM_Abon_Params() {

            if(instance == null)
            {
                instance = new GSM_Abon_Params();
            }
            return instance;

        }
Пример #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) {
     instance = null;
 }
Пример #4
0
 private void Cansel_Click(object sender, RoutedEventArgs e) {
     this.Close();
     instance = null;
 }