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; }
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; }
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; }