示例#1
0
        private void BtnEditCustomerGroup_Clicks(object sender, RoutedEventArgs e)
        {
            this.isEdit = true;
            NewCustomerGroup v = new NewCustomerGroup(this);

            v.Show();
        }
示例#2
0
        private void BtnNewCustomerGroup_Clicks(object sender, RoutedEventArgs e)
        {
            this.isEdit = false;
            bool isWindowOpen = false;

            foreach (Window w in Application.Current.Windows)
            {
                if (w is NewCustomerGroup)
                {
                    isWindowOpen = true;
                    w.Activate();
                }
            }

            if (!isWindowOpen)
            {
                NewCustomerGroup period = new NewCustomerGroup(this);
                period.Show();
            }
        }