private void Ok_Click(object sender, RoutedEventArgs e) { try { CDMA_Abon.P = Double.Parse(P.Text); } catch (Exception) { } try { CDMA_Abon.G = Double.Parse(G.Text); } catch (Exception) { } try { CDMA_Abon.Lf = Double.Parse(L.Text); } catch (Exception) { } this.Close(); instance = null; }
public static CDMA_Abon_Params GetCDMA_Abon_Params() { if(instance == null) { instance = new CDMA_Abon_Params(); } return instance; }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { instance = null; }
private void Cansel_Click(object sender, RoutedEventArgs e) { this.Close(); instance = null; }