Exemple #1
0
        private void WindowAddBakhshNameOnBakhshNameAdded(object sender, EventArgs eventArgs)
        {
            LoadComboBoxBakhshName();

            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(WindowAddDastgahName))
                {
                    WindowAddDastgahName windowAddDastgahName = (WindowAddDastgahName)window;
                    windowAddDastgahName.LoadComboBoxBakhshName();
                }

                if (window.GetType() == typeof(WindowAdd))
                {
                    WindowAdd windowAdd = (WindowAdd)window;
                    windowAdd.LoadComboBoxBakhshName();
                }

                if (window.GetType() == typeof(WindowEdit))
                {
                    WindowEdit windowEdit = (WindowEdit)window;
                    windowEdit.LoadComboBoxBakhshName();
                }
            }
        }
Exemple #2
0
        private void ButtonAddDastgahName_Click(object sender, RoutedEventArgs e)
        {
            WindowAddDastgahName windowAddDastgahName = new WindowAddDastgahName();

            windowAddDastgahName.BakhshGuid        = ((Bakhshha)ComboBoxBakhshName2.SelectedItem).BakhshGUID;
            windowAddDastgahName.DastgahNameAdded += new EventHandler(windowAddDastgahName_DastgahNameAdded);
            windowAddDastgahName.Show();
        }