コード例 #1
0
        private void EditFixedAssetCategory_Clicks(object sender, RoutedEventArgs e)
        {
            this.isEdit = true;
            NewFixedAsset fix = new NewFixedAsset(this);

            fix.Show();
        }
コード例 #2
0
        private void NewFixedAssetCategory_Clicks(object sender, RoutedEventArgs e)
        {
            this.isEdit = false;
            bool isWindowOpen = false;

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

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