Inheritance: MonoBehaviour
Example #1
0
 private void MainForm_Load_1(object sender, EventArgs e)
 {
     Tile.Init();
     PhotoMosaic.Init();
     FolderComboBox.DataSource    = Tile.type;
     FolderComboBox.DisplayMember = "name";
     FolderComboBox.ValueMember   = "folder";
     BlockcomboBox.DataSource     = PhotoMosaic.blockList;
     BlockcomboBox.DisplayMember  = "size";
     BlockcomboBox.ValueMember    = "value";
 }
Example #2
0
        /// <summary>
        /// Initial the class.
        /// </summary>
        private void Init()
        {
            photoMosaic      = new PhotoMosaic();
            QRWriter         = new QRCodeEncoding();
            stopWatch        = new Stopwatch();
            processForm      = new ProcessForm();
            ProcessForm.main = this;
            PhotoMosaic.main = this;
            StateLabel.Text  = SrcPathLabel.Text = "";

            // Calculate avg color of tile's size : 64, 32, 16, 8
            ProcessForm.calcTileSize = Convert.ToInt32(numericUpDown1.Value);
            //tileSize = Convert.ToInt32(numericUpDown2.Value);
            this.Text             = "Photomosaic with embedded QR Code Application";
            QRCodeContentBox.Text = "Hello World!!!";
        }
Example #3
0
        private void ListBox_ItemUnrealized(object sender, ItemRealizationEventArgs e)
        {
            PhotoMosaic v = GetVisualChild <PhotoMosaic>(e.Container);

            if (v != null && _realizedPhotoMosaics.Contains(v))
            {
                _realizedPhotoMosaics.Remove(v);

                PhotoMosaicViewModel m = v.DataContext as PhotoMosaicViewModel;

                if (m != null)
                {
                    m.Realized = false;
                }
            }
        }