コード例 #1
0
 public MainWindow()
 {
     InitializeComponent();
     main_form.Width     = Constant.WIDTH;
     main_form.Height    = Constant.HEIGHT;
     main_form.MinWidth  = Constant.MIN_WIDTH;
     main_form.MinHeight = Constant.MIN_HEIGHT;
     width_backup        = main_form.Width;
     height_backup       = main_form.Height;
     analyzer            = new Analyzer();
     about        = new About_Window();
     change_image = false;
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.sub_about = ((Schoolworks_image_and_color.About_Window)(target));
                return;

            case 2:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
 public MainWindow()
 {
     InitializeComponent();
     main_form.Width     = Constants.WIDTH;
     main_form.Height    = Constants.HEIGHT;
     main_form.MinWidth  = Constants.MIN_WIDTH;
     main_form.MinHeight = Constants.MIN_HEIGHT;
     mWidthOrigin        = main_form.Width;
     mHeightOrigin       = main_form.Height;
     mWindowAnalyzer     = new Analyzer();
     mWindowAbout        = new About_Window();
     mWindowSimilar      = new SimilarWindow();
     mWindowContour      = new ContourWindow();
     mIsChangedImage     = false;
 }