private void EditFixedAssetCategory_Clicks(object sender, RoutedEventArgs e) { this.isEdit = true; NewFixedAsset fix = new NewFixedAsset(this); fix.Show(); }
private void NewFixedAssetCategory_Clicks(object sender, RoutedEventArgs e) { this.isEdit = false; bool isWindowOpen = false; foreach (Window w in Application.Current.Windows) { if (w is NewFixedAsset) { isWindowOpen = true; w.Activate(); } } if (!isWindowOpen) { NewFixedAsset period = new NewFixedAsset(this); period.Show(); } }