/*private void wMainWindow_SourceUpdated(object sender, DataTransferEventArgs e) * { * if ((ActiveUser.wnAddMenu == null) && (ActiveUser.wnDistribution == null) && * (ActiveUser.wnDeleteTransaction == null) && (ActiveUser.wnSettings == null)) * * this.IsEnabled = true; * * }*/ /*private void wMainWindow_LayoutUpdated(object sender, EventArgs e) * { * if ((ActiveUser.wnAddMenu == null) && (ActiveUser.wnDistribution == null) && * (ActiveUser.wnDeleteTransaction == null) && (ActiveUser.wnSettings == null)) * this.IsEnabled = true; * * }//3 раза запускается*/ private void Admimsettings(object sender, RoutedEventArgs e) { var w = new wnAdminSettings(); w.Owner = this; w.Show(); }
/*private void wMainWindow_SourceUpdated(object sender, DataTransferEventArgs e) { if ((ActiveUser.wnAddMenu == null) && (ActiveUser.wnDistribution == null) && (ActiveUser.wnDeleteTransaction == null) && (ActiveUser.wnSettings == null)) this.IsEnabled = true; }*/ /*private void wMainWindow_LayoutUpdated(object sender, EventArgs e) { if ((ActiveUser.wnAddMenu == null) && (ActiveUser.wnDistribution == null) && (ActiveUser.wnDeleteTransaction == null) && (ActiveUser.wnSettings == null)) this.IsEnabled = true; }//3 раза запускается*/ private void Admimsettings(object sender, RoutedEventArgs e) { var w = new wnAdminSettings(); w.Owner = this; w.Show(); }