Ejemplo n.º 1
0
        void windowEditDastgahName_DastgahNameEdited(object sender, EventArgs e)
        {
            LoadComboBoxDastgahName();

            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(WindowAdd))
                {
                    WindowAdd windowAdd = (WindowAdd)window;
                    windowAdd.LoadComboBoxBakhshName();
                    windowAdd.LoadComboBoxdastgahName();
                }

                if (window.GetType() == typeof(WindowEdit))
                {
                    WindowEdit windowEdit = (WindowEdit)window;
                    windowEdit.LoadComboBoxBakhshName();
                    windowEdit.LoadComboBoxdastgahName();
                }

                if (window.GetType() == typeof(MainWindow))
                {
                    MainWindow mainWindow = (MainWindow)window;
                    mainWindow.LoadGridViewDarkhastha();
                }
            }
        }
Ejemplo n.º 2
0
        void windowAddDastgahName_DastgahNameAdded(object sender, EventArgs e)
        {
            LoadComboBoxDastgahName();

            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(WindowAdd))
                {
                    WindowAdd windowAdd = (WindowAdd)window;
                    windowAdd.LoadComboBoxBakhshName();
                    windowAdd.LoadComboBoxdastgahName();
                }

                if (window.GetType() == typeof(WindowEdit))
                {
                    WindowEdit windowEdit = (WindowEdit)window;
                    windowEdit.LoadComboBoxBakhshName();
                    windowEdit.LoadComboBoxdastgahName();
                }
            }
        }