Ejemplo n.º 1
0
        /*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();
        }
Ejemplo n.º 2
0
        /*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();
        }