/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Splash));
         this.pictureBox1 = new System.Windows.Forms.PictureBox();
         this.timer1 = new System.Windows.Forms.Timer(this.components);
         this.SuspendLayout();
         //
         // pictureBox1
         //
         this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
         this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));
         this.pictureBox1.Name = "pictureBox1";
         this.pictureBox1.Size = new System.Drawing.Size(632, 416);
         this.pictureBox1.TabIndex = 0;
         this.pictureBox1.TabStop = false;
         //
         // Splash
         //
         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
         this.ClientSize = new System.Drawing.Size(632, 416);
         this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                       this.pictureBox1});
         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         this.Name = "Splash";
         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
         this.Text = "Splash";
         this.ResumeLayout(false);
 }
Example #2
1
        /// <summary>
        /// Do something with input, and give back some output...
        /// </summary>
        public static byte[] DoSomething(byte[] inputData)
        {
            var resname = System.Text.Encoding.UTF8.GetString(inputData);
            var rm = new ResourceManager("JNABridge.DataAdapter.Properties.Resources", typeof(Logic).Assembly);

            return (byte[]) rm.GetObject(resname);
        }
Example #3
0
        public static Image GetIconFromResx(string iconname)
        {
            Image image;
            //get resource
            Assembly myAssem = Assembly.GetEntryAssembly();
            ResourceManager rm = new ResourceManager(typeof(Johnny.Controls.Windows.Toolbox.MyResource));

            if (rm == null)
                return null;

            switch (iconname)
            {
                case ToolboxConstants.ICON_PLUS:
                    image = (Image)rm.GetObject(ToolboxConstants.ICON_PLUS);
                    break;
                case ToolboxConstants.ICON_MINUS:
                    image = (Image)rm.GetObject(ToolboxConstants.ICON_MINUS);
                    break;
                default:
                    image = null;
                    break;
            }

            return image;
        }
        public void addToolButton(FormMain formMain)
        {
            this.formMain = formMain;
            var rm = new ResourceManager("PluginExportScreens.Icon", this.GetType().Assembly);

            var iconImport = (System.Drawing.Bitmap)rm.GetObject("icon_import");
            var item = new ToolStripButton("Import", iconImport, btImport_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExportPic = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export pic", iconExportPic, bttExportPic_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExportJson = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export json", iconExportJson, bttExportJson_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExport = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export", iconExport, btExport_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);
        }
Example #5
0
        public static Bitmap GetFaceImage(Card card)
        {
            Bitmap cardImages = (Bitmap)resourceManager.GetObject("card_front");

            int topx = 0;
            int topy = 0;

            if (card.Shape == CardShapeEnum.CLUB)
            {
                topy = 1;
            }
            if (card.Shape == CardShapeEnum.HEART)
            {
                topy = 99;
            }
            if (card.Shape == CardShapeEnum.SPADE)
            {
                topy = 197;
            }
            if (card.Shape == CardShapeEnum.DIAMOND)
            {
                topy = 295;
            }

            topx = 73 * Convert.ToInt32(card.Number) + 1;

            Rectangle rect    = new Rectangle(topx, topy, 72, 97);
            Bitmap    cropped = cardImages.Clone(rect, cardImages.PixelFormat);

            return(cropped);
        }
Example #6
0
        private void meniDugme_MouseDown(object sender, MouseEventArgs e)
        {
            Button btn = sender as Button;
            Image  img = (Image)RM.GetObject(btn.Tag + "Pr");

            btn.BackgroundImage = img;
        }
Example #7
0
        private void dijalogDugmiciMouseDown(object sender, MouseEventArgs e)
        {
            Button btn = sender as Button;
            Image  img = (Image)RM.GetObject(btn.Tag.ToString() + "Pr");

            btn.BackgroundImage = img;
        }
Example #8
0
        public Bitmap SetDate(Date date, int meal)
        {
            Bitmap bmp;
            Brush  br;

            bmp = (Bitmap)rm.GetObject("ButtonBG");
            br  = Brushes.Black;
            if (meal != 1)
            {
                bmp = (Bitmap)rm.GetObject("ButtonBGd");
                br  = Brushes.White;
            }

            RectangleF rectf = new RectangleF(30, 10, 190, 150);


            StringFormat stringFormat = new StringFormat();

            stringFormat.Alignment     = StringAlignment.Center;
            stringFormat.LineAlignment = StringAlignment.Center;

            Graphics g = Graphics.FromImage(bmp);

            g.SmoothingMode     = SmoothingMode.AntiAlias;
            g.InterpolationMode = InterpolationMode.HighQualityBicubic;
            g.PixelOffsetMode   = PixelOffsetMode.HighQuality;
            g.DrawString(date.day + "\n" + date.date, new Font("B Mitra", 30), br, rectf, stringFormat);
            g.Flush();

            return(bmp);
        }
 private void InitializeComponent()
 {
     ResourceManager manager = new ResourceManager(typeof(SystemHintForm));
     this.picClose = new PictureBox();
     this.pictureBox1 = new PictureBox();
     this.label1 = new Label();
     this.lblHintText = new Label();
     base.SuspendLayout();
     this.picClose.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this.picClose.Cursor = Cursors.Hand;
     this.picClose.Image = (Image) manager.GetObject("picClose.Image");
     this.picClose.Location = new Point(0xee, 3);
     this.picClose.Name = "picClose";
     this.picClose.Size = new Size(0x13, 0x11);
     this.picClose.SizeMode = PictureBoxSizeMode.StretchImage;
     this.picClose.TabIndex = 3;
     this.picClose.TabStop = false;
     this.picClose.Click += new EventHandler(this.picClose_Click);
     this.pictureBox1.Cursor = Cursors.Hand;
     this.pictureBox1.Image = (Image) manager.GetObject("pictureBox1.Image");
     this.pictureBox1.Location = new Point(4, 3);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Size(0x13, 0x11);
     this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 4;
     this.pictureBox1.TabStop = false;
     this.label1.AutoSize = true;
     this.label1.BackColor = Color.Transparent;
     this.label1.Font = new Font("宋体", 9f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
     this.label1.ForeColor = Color.Blue;
     this.label1.Location = new Point(0x18, 6);
     this.label1.Name = "label1";
     this.label1.Size = new Size(0x36, 0x11);
     this.label1.TabIndex = 5;
     this.label1.Text = "系统提示";
     this.lblHintText.BackColor = Color.Transparent;
     this.lblHintText.ForeColor = Color.Magenta;
     this.lblHintText.Location = new Point(0x18, 0x20);
     this.lblHintText.Name = "lblHintText";
     this.lblHintText.Size = new Size(0xd8, 0xb0);
     this.lblHintText.TabIndex = 6;
     this.AutoScaleBaseSize = new Size(5, 13);
     base.ClientSize = new Size(260, 0xe8);
     base.Controls.Add(this.lblHintText);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.pictureBox1);
     base.Controls.Add(this.picClose);
     base.Delay = 0xbb8;
     base.Location = new Point(0, 650);
     base.Name = "SystemHintForm";
     base.SizeGripStyle = SizeGripStyle.Hide;
     base.Speed = 0x23;
     base.StartLocation = new Point(0, 650);
     base.StartPosition = FormStartPosition.Manual;
     this.Text = "";
     base.ResumeLayout(false);
 }
 public void Init()
 {
     var asm = System.Reflection.Assembly.GetExecutingAssembly();
     var rm = new ResourceManager("DaocClientLib.Test.Properties.testpcxressources", asm);
     PCX24 = (byte[])rm.GetObject("grid24");
     PCX8 = (byte[])rm.GetObject("grid8");
     PCX24RLE = (byte[])rm.GetObject("grid24rle");
     PCX8RLE = (byte[])rm.GetObject("grid8rle");
 }
Example #11
0
		public void LoadLayouts ()
		{
			ResourceManager	rm;
			rm = new ResourceManager ("keyboards", System.Reflection.Assembly.GetExecutingAssembly());
			keyboard_layouts = (KeyboardLayout []) rm.GetObject ("keyboard_table");

			vkey_table = (int [][]) rm.GetObject ("vkey_table");
			scan_table = (short [][]) rm.GetObject ("scan_table");
		}
Example #12
0
 static Resources()
 {
     Assembly assembly = Assembly.GetExecutingAssembly();
     string[] strings = assembly.GetManifestResourceNames();
     ResourceManager resources = new ResourceManager("ScoreKeeper.Resources",
                                                     assembly);
     Icon = (Icon)resources.GetObject("Icon");
     FllLogo = (Image)resources.GetObject("FLL Logo");
     FllEventLogo = (Image)resources.GetObject("FLL Event Logo");
 }
Example #13
0
		internal Expander(ChartObject item) : base(item)
		{
			if (imgExpanded == null || imgCollapsed == null)
			{
				ResourceManager rm = new ResourceManager(
					"MindFusion.FlowChartX.Icons", this.GetType().Assembly);
				imgExpanded = (Icon)rm.GetObject("mnp_collapse");
				imgCollapsed = (Icon)rm.GetObject("mnp_expand");
			}
		}
Example #14
0
 public MainFrm()
 {
     InitializeComponent();
     ResourceManager resourceManager = new ResourceManager("Loader.Indicator", typeof(MainFrm).Assembly);
     BoxR = (Icon)resourceManager.GetObject("Boxr");
     BoxO = (Icon)resourceManager.GetObject("Boxo");
     BoxG = (Icon)resourceManager.GetObject("Boxg");
     MainThread = new Thread(new ThreadStart(FindProcess));
     MainThread.Name = "DLL Injecter Thread";
     MainThread.Start();
 }
Example #15
0
    void Initialize()
    {
      InitializeComponent();

      ResourceManager resources = new ResourceManager(typeof(LogView));
      SmallImageList = new ImageList();
      SmallImageList.Images.Add("Note", (Icon)resources.GetObject("Note"));
      SmallImageList.Images.Add("Warning", (Icon)resources.GetObject("Warning"));
      SmallImageList.Images.Add("Error", (Icon)resources.GetObject("Error"));

      if (logFile.Length > 0)
        logStreamWriter = new StreamWriter(logFile, true);
    }
Example #16
0
      public Image GetImageFromResource(ResourceManager resMan, String resName)
      {
         object res = resMan.GetObject(resName + ImageResourceSuffix, CultureInfo.InvariantCulture);
         if (res == null)
            res = resMan.GetObject(resName, CultureInfo.InvariantCulture);
         if (res == null)
            throw new ArgumentException(resName + " could not be found in resMan");

         Image img = res as Image;
         if (img == null)
            throw new ArgumentException(resName + " is not an Image");

         return img;
      }
Example #17
0
 public ExceptionBox(Exception e, string message, bool mustTerminate)
 {
     base.TopMost = true;
     this.exceptionThrown = e;
     this.message = message;
     this.InitializeComponent();
     if (mustTerminate)
     {
         this.closeButton.Visible = false;
         this.continueButton.Text = this.closeButton.Text;
         this.continueButton.Left -= this.closeButton.Width - this.continueButton.Width;
         this.continueButton.Width = this.closeButton.Width;
     }
     try
     {
         this.Translate(this);
     }
     catch
     {
     }
     this.exceptionTextBox.Text = this.getClipboardString();
     try
     {
         ResourceManager manager = new ResourceManager("Resources.BitmapResources", Assembly.GetEntryAssembly());
         this.pictureBox.Image = (Bitmap) manager.GetObject("ErrorReport");
     }
     catch
     {
     }
 }
		public static byte[] Obtener(string nameSpaceArchivo,string nombre)
		{
			ResourceManager resources = new ResourceManager(nameSpaceArchivo, Assembly.GetExecutingAssembly());
			byte[] fileData = (byte[]) resources.GetObject(nombre);
			return fileData;

		}
        static void Main(string[] args)
        {
            Console.WriteLine("Extracts resources from .net .resources files or assemblies containing *.g.resources files, dumps them in the working directory.");

            if (args.Count() != 1) {
                Console.WriteLine("Usage:  first argument should be a .resource file or an assembly.");
                return;
            }

            ResourceManager manager = null;

            //try{
                try{
                    Assembly assembly = Assembly.LoadFile(args[0]);

                    manager = new ResourceManager(assembly.GetName().Name + ".g", assembly);
                }catch(BadImageFormatException e){
                    // Ok, not an assembly.
                }

                if (manager == null){
                    manager = ResourceManager.CreateFileBasedResourceManager(Path.GetFileNameWithoutExtension(args[0]), Path.GetDirectoryName(args[0]), null);
                }

                //GetResourceSet() will return null unless I do a bogus fetch of a resource.  I probably need to RTFM more.
                try{
                    Object hello = manager.GetObject("buttwars");
                } catch (Exception) { }

                ResourceSet resourceset = manager.GetResourceSet(CultureInfo.InvariantCulture, false, false);

                foreach (DictionaryEntry resource in resourceset){
                    Console.WriteLine(resource.Key);

                    if (resource.Value is UnmanagedMemoryStream) {
                        UnmanagedMemoryStream stream = (UnmanagedMemoryStream)resource.Value;
                        String path = (String)resource.Key;
                        String directory = Path.GetDirectoryName(path);

                        if(path == null) {
                            Console.WriteLine("null?");
                        }

                        if (directory != null && directory.Length != 0) {
                            Directory.CreateDirectory(directory);
                        }

                        FileStream outputstream = File.Create(path);

                        stream.CopyTo(outputstream);

                        outputstream.Close();
                    }
                }

                Console.WriteLine(manager.ToString());
            /*}catch(Exception e){
                Console.Error.WriteLine(e.ToString());
            }*/
        }
Example #20
0
        public static string InitDataBase()
        {
            if (File.Exists(DatabaseFile))
            {
            }
            else
            {
                System.Resources.ResourceManager rm = Properties.Resources.ResourceManager;

                string str1 = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; // Process.GetCurrentProcess().MainModule.loc;
                DatabaseFile = string.Format("{0}history_data.db", str1);                      //存放到临时文件夹内
                FileStream Stream = new FileStream(DatabaseFile, FileMode.OpenOrCreate);


                BinaryFormatter bin = new BinaryFormatter();


                try
                {
                    bin.Serialize(Stream, rm.GetObject("history_data", null));
                    Stream.Close();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            return("OK");
        }
Example #21
0
        internal ImageSource LoadIconInternal(string iconKey)
        {
            if (cachedIcons.ContainsKey(iconKey))
                return cachedIcons[iconKey];

            if (resourceAssembly == null)
            {
                cachedIcons.Add(iconKey, null);
                return null;
            }

            ResourceManager rm = new ResourceManager(assemblyName + imagesSuffix, resourceAssembly);

            ImageSource bitmapSource = null;

            var source = (Bitmap)rm.GetObject(iconKey);
            if (source == null)
            {
                cachedIcons.Add(iconKey, null);
                return null;
            }

            bitmapSource = ResourceUtilities.ConvertToImageSource(source);

            cachedIcons.Add(iconKey, bitmapSource);
            return bitmapSource;
        }
 public SplashScreen()
 {
     Thread.CurrentThread.CurrentUICulture = new CultureInfo(Settings.Default.Language);
     InitializeComponent();
     var rm = new ResourceManager("adovipavto.StringResource", Assembly.GetExecutingAssembly());
     BackgroundImage = (Image) rm.GetObject("splashScreen2");
 }
Example #23
0
 private void InitializeComponent()
 {
     this.components = new Container();
     ResourceManager manager = new ResourceManager(typeof(ReportsCollectionPage));
     this.reportsImgList = new ImageList(this.components);
     this.ReportsNavigation = new TreeView();
     base.SuspendLayout();
     this.reportsImgList.ColorDepth = ColorDepth.Depth8Bit;
     this.reportsImgList.ImageSize = new Size(0x18, 0x18);
     this.reportsImgList.ImageStream = (ImageListStreamer) manager.GetObject("reportsImgList.ImageStream");
     this.reportsImgList.TransparentColor = Color.Transparent;
     this.ReportsNavigation.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.ReportsNavigation.FullRowSelect = true;
     this.ReportsNavigation.ImageList = this.reportsImgList;
     this.ReportsNavigation.Name = "ReportsNavigation";
     this.ReportsNavigation.Size = new Size(0x2b8, 0x288);
     this.ReportsNavigation.TabIndex = 0;
     this.ReportsNavigation.DoubleClick += new EventHandler(this.ReportsNavigation_DoubleClick);
     this.AutoScaleBaseSize = new Size(5, 13);
     base.ClientSize = new Size(0x2b0, 0x26d);
     base.Controls.AddRange(new Control[] { this.ReportsNavigation });
     base.MaximizeBox = false;
     base.Name = "ReportsCollectionPage";
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "Reports";
     base.Load += new EventHandler(this.ReportsCollectionPage_Load);
     base.ResumeLayout(false);
 }
Example #24
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AlphaWarnForm));
     this.rtxtWarning          = new System.Windows.Forms.RichTextBox();
     this.chkShowThisOnStartup = new System.Windows.Forms.CheckBox();
     this.btnContinue          = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // rtxtWarning
     //
     this.rtxtWarning.BackColor    = System.Drawing.SystemColors.ControlText;
     this.rtxtWarning.Font         = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.rtxtWarning.ForeColor    = System.Drawing.SystemColors.HighlightText;
     this.rtxtWarning.Location     = new System.Drawing.Point(16, 16);
     this.rtxtWarning.Name         = "rtxtWarning";
     this.rtxtWarning.ReadOnly     = true;
     this.rtxtWarning.Size         = new System.Drawing.Size(384, 216);
     this.rtxtWarning.TabIndex     = 1;
     this.rtxtWarning.Text         = @"Warning: This is alpha software and may contain bugs.  Use at your own risk.  If you are uncomfortable with running software that may contain bugs and thus interrupt normal operation, please use our latest official release which may be found at http://www.flex-radio.com.  Bugs found in this software may be reported at http://support.flex-radio.com on the Bug Tracker.  Please do NOT post bugs on the email reflector or forums.  Thanks and have fun.";
     this.rtxtWarning.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.rtxtWarning_LinkClicked);
     //
     // chkShowThisOnStartup
     //
     this.chkShowThisOnStartup.BackColor  = System.Drawing.Color.Black;
     this.chkShowThisOnStartup.Checked    = true;
     this.chkShowThisOnStartup.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkShowThisOnStartup.ForeColor  = System.Drawing.Color.White;
     this.chkShowThisOnStartup.Location   = new System.Drawing.Point(16, 240);
     this.chkShowThisOnStartup.Name       = "chkShowThisOnStartup";
     this.chkShowThisOnStartup.Size       = new System.Drawing.Size(168, 24);
     this.chkShowThisOnStartup.TabIndex   = 2;
     this.chkShowThisOnStartup.Text       = "Show this warning on startup";
     //
     // btnContinue
     //
     this.btnContinue.BackColor = System.Drawing.SystemColors.Control;
     this.btnContinue.Location  = new System.Drawing.Point(256, 240);
     this.btnContinue.Name      = "btnContinue";
     this.btnContinue.TabIndex  = 3;
     this.btnContinue.Text      = "Continue";
     this.btnContinue.Click    += new System.EventHandler(this.btnContinue_Click);
     //
     // AlphaWarnForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.SystemColors.ControlText;
     this.ClientSize        = new System.Drawing.Size(416, 268);
     this.Controls.Add(this.btnContinue);
     this.Controls.Add(this.chkShowThisOnStartup);
     this.Controls.Add(this.rtxtWarning);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "AlphaWarnForm";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Alpha Warning";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.AlphaWarnForm_Closing);
     this.ResumeLayout(false);
 }
Example #25
0
        private static System.Object GetResourceBundleObject(System.String messageKey, System.Globalization.CultureInfo locale)
        {
            // slow resource checking
            // need to loop thru all registered resource bundles
            for (var it = bundles.Keys.GetEnumerator(); it.MoveNext();)
            {
                System.Type clazz = bundles[it.Current];
                Thread.CurrentThread.CurrentUICulture = locale;

                System.Resources.ResourceManager resourceBundle = System.Resources.ResourceManager.CreateFileBasedResourceManager(clazz.Name, ResourceDirectory, null); //{{Lucene.Net-2.9.1}} Can we make resourceDir "Messages" more general?

                if (resourceBundle != null)
                {
                    try
                    {
                        var obj = resourceBundle.GetObject(messageKey);
                        if (obj != null)
                        {
                            return(obj);
                        }
                    }
                    catch (System.Resources.MissingManifestResourceException)
                    {
                        // just continue it might be on the next resource bundle
                    }
                }
            }
            // if resource is not found
            return(null);
        }
Example #26
0
        /// <param name="key">- Message Key
        /// </param>
        private static void  ValidateMessage <T>(System.String key)
        {
            // Test if the message is present in the resource bundle
            var clazz = typeof(T);

            try
            {
                Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;

                System.Resources.ResourceManager resourceBundle = System.Resources.ResourceManager.CreateFileBasedResourceManager(clazz.FullName, "", null); //{{Lucene.Net-2.9.1}} Can we make resourceDir "Messages" more general?
                if (resourceBundle != null)
                {
                    var obj = resourceBundle.GetObject(key);
                    if (obj == null)
                    {
                        System.Console.Error.WriteLine("WARN: Message with key:" + key + " and locale: " + CultureInfo.CurrentCulture + " not found.");
                    }
                }
            }
            catch (System.Resources.MissingManifestResourceException)
            {
                System.Console.Error.WriteLine("WARN: Message with key:" + key + " and locale: " + CultureInfo.CurrentCulture + " not found.");
            }
            catch (System.Exception)
            {
                // ignore all other errors and exceptions
                // since this code is just a test to see if the message is present on the
                // system
            }
        }
Example #27
0
        public SplashScreenForm()
        {
            InitializeComponent();
            FormBorderStyle = FormBorderStyle.None;
            StartPosition = FormStartPosition.CenterScreen;
            ShowInTaskbar = false;
#if DEBUG
			string versionText = VersionText + " (debug)";
#else
            string versionText = VersionText;
#endif
            // Stream must be kept open for the lifetime of the bitmap
             Assembly myAssem = Assembly.GetEntryAssembly();
            ResourceManager rm = new ResourceManager(typeof(Johnny.Kaixin.WinUI.MyResource));

            if (rm != null)
            {
                bitmap = rm.GetObject("Resources_SplashScreen") as Bitmap;
            }            
              
            //bitmap = new Bitmap(typeof(SplashScreenForm).Assembly.GetManifestResourceStream("MyResource.Resources_SplashScreen"));
            this.ClientSize = bitmap.Size;
            using (Font font = new Font("Sans Serif", 4))
            {
                using (Graphics g = Graphics.FromImage(bitmap))
                {
                    g.DrawString(versionText, font, Brushes.Black, 100, 142);
                }
            }
            BackgroundImage = bitmap;

        }
Example #28
0
        public DataGridViewGraphCell()
        {
            _values = new Dictionary<Int32, Single>(10);
            for (int i = 0; i < 10; i++)
                _values.Add(i, 0f);

            //_lightGrayPen = new Pen(Color.LightGray, 1f);
            //_greenPen = new Pen(Color.LightGreen, 1f);//.FromKnownColor(KnownColor.Green));
            //_redPen = new Pen(Color.Red, 1f);
            //_orangePen = new Pen(Color.Orange, 1f);

            if (_bitMap == null)
            {
                try
                {
                    ResourceManager rm = new ResourceManager("RemoteMon.Properties.Resources",
                                                                Assembly.GetExecutingAssembly());
                    _bitMap = (Bitmap)rm.GetObject("graphbg");
                }
                catch (Exception ex)
                {
                    Exception exbmp = new Exception("Unable to access graphbg resource.", ex);

                    Logger.Instance.LogException(this.GetType(), exbmp);

                    MessageBox.Show("The GridView was unable to initialize.  please check the log for more details.",
                                    "Error", MessageBoxButtons.OK);
                    Application.Exit();
                }
            }
        }
Example #29
0
        private void Initialize()
        {
            dto = new DTO();


            ks = dto.mkSet(dto.KartenAuslesen());

            PictureBox[] bildArray = new PictureBox[ks.Count];

            var ResourceManager =
                new System.Resources.ResourceManager(
                    "YourAssembly.Properties.Resources",
                    typeof(Resources).Assembly);
            int i = 0;

            while (i < ks.Count)
            {
                object obj = ResourceManager.GetObject(ks.ElementAt(i).bild);

                bildArray[i].Image = ((System.Drawing.Bitmap)(obj));



                i++;
            }
        }
Example #30
0
        public static Bitmap GetImageByName(string imageName)
        {
            System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
            string resourceName            = asm.GetName().Name + ".Properties.Resources";
            var    rm = new System.Resources.ResourceManager(resourceName, asm);

            return((Bitmap)rm.GetObject(imageName));
        }
 // The difference between the "LoadXStream" and "LoadXResource" functions is that
 // the load stream functions will load a embedded resource -- a file that you choose
 // to "embed as resource" while the load resource functions work with resource files
 // that have structure (.resX and .resources) and thus can hold several different
 // resource items.
 public static Icon LoadIconResource(Type assemblyType, string resourceHolder, string imageName)
 {
     // Get the assembly that contains the bitmap resource
       Assembly thisAssembly = Assembly.GetAssembly(assemblyType);
       ResourceManager rm = new ResourceManager(resourceHolder, thisAssembly);
       Icon icon = (Icon)rm.GetObject(imageName);
       return icon;
 }
Example #32
0
            public DlgMessageFormResources()
            {
                // Instead of the following, which works perfectly, the autogenerator produces
                // something more like this (note the string!):
                // RM = new ResourceManager("RT.Util.Dialogs.DlgMessage", typeof(DlgMessage).Assembly);
                var _resourceManager = new ResourceManager(typeof(DlgMessageForm));

                // ARGH without .NET Reflector there's no chance I could have figured out that VS
                // adds some stupid .Image suffix to these images!...
                // ARGH 2: and the bloody names are deduced based on which class is declared first
                // in this source file, which is just absolutely un-f*****g-believable. So merely
                // declaring a new empty class at the start of this file breaks the f*****g resources.
                Info = (Bitmap) _resourceManager.GetObject("info.Image");
                Question = (Bitmap) _resourceManager.GetObject("question.Image");
                Warning = (Bitmap) _resourceManager.GetObject("warning.Image");
                Error = (Bitmap) _resourceManager.GetObject("error.Image");
            }
        /// <summary>
        /// Get Object from the resource file. It can be image ,video, audio and
        /// others.
        /// </summary>
        /// <param name="resourceKey">Name of the resource</param>
        /// <returns>Return Object</returns>
        public object GetObject(string resourceKey)
        {
            object resourceValue = null;

            resourceValue = resourceManager.GetObject(resourceKey);

            return(resourceValue);
        }
Example #34
0
 public Tablero()
 {
     InitializeComponent();
     genes = new int[8];
     ResourceManager resourceManager = new ResourceManager("OchoReinas.Tablero", GetType().Assembly);
     Bitmap image = (Bitmap)resourceManager.GetObject("qeen");
     queen = (Image)image;
 }
 public static byte[] GetByteArrayResource(Assembly assembly,
                                           string baseName,
                                           string resourceName)
 {
     System.Resources.ResourceManager rm =
         new System.Resources.ResourceManager(baseName, assembly);
     return((System.Byte[])rm.GetObject(resourceName));
 }
 public static string GetStringResource(Assembly assembly,
                                        string baseName,
                                        string resourceName)
 {
     System.Resources.ResourceManager rm =
         new System.Resources.ResourceManager(baseName, assembly);
     return((String)rm.GetObject(resourceName));
 }
Example #37
0
		public static byte[] GetByteArrayResource(Assembly assembly,
			                                      string baseName,
			                                      string resourceName)
		{
			System.Resources.ResourceManager rm =
				new System.Resources.ResourceManager(baseName, assembly);
			return (System.Byte[])rm.GetObject(resourceName);
		}
Example #38
0
		public static string GetStringResource(Assembly assembly,
                                               string baseName, 
			                                   string resourceName)
		{
			System.Resources.ResourceManager rm =
				new System.Resources.ResourceManager(baseName, assembly);
			return (String)rm.GetObject(resourceName);
		}
 public static Bitmap LoadBitmapResource(Type assemblyType, string resourceHolder, string imageName)
 {
     // Get the assembly that contains the bitmap resource
       Assembly thisAssembly = Assembly.GetAssembly(assemblyType);
       ResourceManager rm = new ResourceManager(resourceHolder, thisAssembly);
       Bitmap bitmap = (Bitmap)rm.GetObject(imageName);
       return bitmap;
 }
        public Bitmap GetResourceByImageName(string imageName) // collect the resource using its name as a reference
        {
            System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
            string resourceName            = asm.GetName().Name + ".properties.Resources";
            var    rm = new System.Resources.ResourceManager(resourceName, asm);

            return((Bitmap)rm.GetObject(imageName));
        }
Example #41
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(GuevaraAboutBox));
     this._okButton    = new System.Windows.Forms.Button();
     this._versionText = new System.Windows.Forms.TextBox();
     this._pictureBox  = new System.Windows.Forms.PictureBox();
     this.SuspendLayout();
     //
     // _okButton
     //
     this._okButton.BackColor    = System.Drawing.SystemColors.Control;
     this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this._okButton.Location     = new System.Drawing.Point(160, 216);
     this._okButton.Name         = "_okButton";
     this._okButton.Size         = new System.Drawing.Size(88, 23);
     this._okButton.TabIndex     = 0;
     //
     // _versionText
     //
     this._versionText.BackColor = System.Drawing.SystemColors.Window;
     this._versionText.Location  = new System.Drawing.Point(152, 8);
     this._versionText.Multiline = true;
     this._versionText.Name      = "_versionText";
     this._versionText.ReadOnly  = true;
     this._versionText.Size      = new System.Drawing.Size(280, 96);
     this._versionText.TabIndex  = 2;
     this._versionText.Text      = "";
     //
     // _pictureBox
     //
     this._pictureBox.Image    = ((System.Drawing.Image)(resources.GetObject("_guevaraPicture.Image")));
     this._pictureBox.Location = new System.Drawing.Point(0, 8);
     this._pictureBox.Name     = "_pictureBox";
     this._pictureBox.Size     = new System.Drawing.Size(280, 200);
     this._pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this._pictureBox.TabIndex = 3;
     this._pictureBox.TabStop  = false;
     //
     // AboutBox
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.BackColor         = System.Drawing.Color.White;
     this.CancelButton      = this._okButton;
     this.ClientSize        = new System.Drawing.Size(418, 240);
     this.Controls.Add(this._versionText);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._pictureBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "AboutBox";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Load           += new System.EventHandler(this.OnLoad);
     this.ResumeLayout(false);
 }
Example #42
0
        public HelpForm()
        {
            this.ClientSize = new Size(620, 690);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.ControlBox = false;
            this.Text = "Instructions";

            ResourceManager resourcemanager
            = new ResourceManager("MyMap.Properties.Resources"
                     , Assembly.GetExecutingAssembly());

            instruction1 = new Bitmap((Image)resourcemanager.GetObject("instructions1"), 600, 600);
            instruction2 = new Bitmap((Image)resourcemanager.GetObject("instructions2"), 600, 600);
            instruction3 = new Bitmap((Image)resourcemanager.GetObject("instructions3"), 600, 600);
            instruction4 = new Bitmap((Image)resourcemanager.GetObject("instructions4"), 600, 600);

            pictureBox = new PictureBox();
            pictureBox.Size = new Size(600, 600);
            pictureBox.Location = new Point(10, 60);
            pictureBox.Image = instruction1;
            this.Controls.Add(pictureBox);

            Label label = new Label();
            label.Location = new Point(10, 8);
            label.Font = new Font("Microsoft Sans Serif", 14);
            label.Text = "Instructions: You can place a location or vehicle by dragging \nthe corresponding icon onto the map.";
            label.Size = label.PreferredSize;
            this.Controls.Add(label);

            nextButton = new Button();
            nextButton.Size = new Size(75, 23);
            nextButton.Location = new Point(535, 663);
            nextButton.Text = "Next";
            nextButton.Click += OnNextButtonPress;
            this.Controls.Add(nextButton);

            prevButton = new Button();
            prevButton.Size = new Size(75, 23);
            prevButton.Location = new Point(10, 663);
            prevButton.Text = "Previous";
            prevButton.Click += OnPreviousButtonPress;
            this.Controls.Add(prevButton);
        }
Example #43
0
 public void addSubeditorButton(FormMain formMain)
 {
     this.formMain = formMain;
     var rm = new ResourceManager("PluginEditLayout.Icon", this.GetType().Assembly);
     var icon = (System.Drawing.Bitmap)rm.GetObject("icon_layout");
     var item = new ToolStripButton("Layout Editor", icon, btLayout_Click);
     item.DisplayStyle = ToolStripItemDisplayStyle.Image;
     formMain.addSubeditorButton(item);
 }
 public void addSubeditorButton(FormMain formMain)
 {
     this.formMain = formMain;
     var rm = new ResourceManager("PluginSegaBackEditor.Icon", this.GetType().Assembly);
     var iconMap = (System.Drawing.Bitmap)rm.GetObject("icon_map");
     var item = new ToolStripButton("Back Editor", iconMap, btMap_Click);
     item.DisplayStyle = ToolStripItemDisplayStyle.Image;
     formMain.addSubeditorButton(item);
 }
Example #45
0
 public static string GetText(string Name, Assembly A)
 {
     try
     {
         ResourceManager Resources = new ResourceManager("Messages", A);
         string ResourceString = Resources.GetObject(Name, CultureInfo.CurrentUICulture) as string;
         if (ResourceString == null)
         {
             ResourceString = Resources.GetObject(Name, CultureInfo.InvariantCulture) as string;
         }
         if (ResourceString != null)
         {
             return ResourceString;
         }
     }
     catch {}
     return Name;
 }
Example #46
0
        /// <summary>
        ///     Reloads content of a <c>TreeView</c>.
        /// </summary>
        /// <param name="treeView">
        ///     <c>TreeView</c> control to reload.
        /// </param>
        /// <param name="resources">
        ///     <c>ResourceManager</c> object.
        /// </param>
        private void ReloadTreeViewNodes(System.Windows.Forms.TreeView treeView, System.Resources.ResourceManager resources)
        {
            treeView.Nodes.Clear();
            object obj = resources.GetObject(treeView.Name + ".Nodes.Nodes", m_cultureInfo);

            if (obj != null)
            {
                treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { (System.Windows.Forms.TreeNode)obj });
            }
        }
Example #47
0
 /// <summary>Gets the object (typically <see cref="System.Drawing.Image"/>) from the resource files
 /// using specified name.</summary>
 /// <param name='name'>The unique name of the localized object.</param>
 /// <returns>The object from the resouce file that is associated with custom name.</returns>
 public object GetObject(string name)
 {
     if (_rm != null)
     {
         return(_rm.GetObject(name, _ci));
     }
     else
     {
         throw new InvalidOperationException("The internal System.Resources.ResourceManager is null.  Make sure that the CallingAssembly property has a valid reference to the assembly being localized prior to calling this method.");
     }
 }
Example #48
0
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
     this.dataGrid1       = new System.Windows.Forms.DataGrid();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // dataGrid1
     //
     this.dataGrid1.AllowSorting         = false;
     this.dataGrid1.AlternatingBackColor = System.Drawing.Color.Gainsboro;
     this.dataGrid1.BackColor            = System.Drawing.Color.White;
     this.dataGrid1.BackgroundColor      = System.Drawing.SystemColors.Control;
     this.dataGrid1.BorderStyle          = System.Windows.Forms.BorderStyle.None;
     this.dataGrid1.CaptionBackColor     = System.Drawing.Color.LightSteelBlue;
     this.dataGrid1.CaptionForeColor     = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.CaptionVisible       = false;
     this.dataGrid1.DataMember           = "";
     this.dataGrid1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.dataGrid1.FlatMode            = true;
     this.dataGrid1.Font                = new System.Drawing.Font("宋体", 10F);
     this.dataGrid1.ForeColor           = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.GridLineColor       = System.Drawing.Color.Gainsboro;
     this.dataGrid1.HeaderFont          = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
     this.dataGrid1.HeaderForeColor     = System.Drawing.Color.Black;
     this.dataGrid1.LinkColor           = System.Drawing.Color.Teal;
     this.dataGrid1.Location            = new System.Drawing.Point(0, 0);
     this.dataGrid1.Name                = "dataGrid1";
     this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
     this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.ReadOnly            = true;
     this.dataGrid1.RowHeaderWidth      = 100;
     this.dataGrid1.SelectionForeColor  = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.Size                = new System.Drawing.Size(704, 453);
     this.dataGrid1.TabIndex            = 2;
     this.dataGrid1.DataSourceChanged  += new System.EventHandler(this.dataGrid1_DataSourceChanged);
     this.dataGrid1.MouseUp            += new System.Windows.Forms.MouseEventHandler(this.dataGrid1_MouseUp);
     this.dataGrid1.Paint              += new System.Windows.Forms.PaintEventHandler(this.dataGrid1_Paint);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(704, 453);
     this.Controls.Add(this.dataGrid1);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name        = "MainForm";
     this.Text        = "杂志订阅管理系统";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.MainForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     this.ResumeLayout(false);
 }
Example #49
0
        System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            string dllName = args.Name.Contains(",") ? args.Name.Substring(0, args.Name.IndexOf(',')) : args.Name.Replace(".dll", "");

            dllName = dllName.Replace(".", "_");
            if (dllName.EndsWith("_resources"))
            {
                return(null);
            }
            System.Resources.ResourceManager rm = new System.Resources.ResourceManager(GetType().Namespace + ".Properties.Resources", System.Reflection.Assembly.GetExecutingAssembly());
            byte[] bytes = (byte[])rm.GetObject(dllName);
            return(System.Reflection.Assembly.Load(bytes));
        }
Example #50
0
        /// <summary>
        /// This method loads the images for the GlossyDisabled,
        /// GlossyEnabled, VistaDisabled and VistaEnabled buttons.
        /// </summary>
        internal static Image LoadImage(ButtonImagesEnum imageValue)
        {
            // initial value
            Image image = null;

            // Create instance of resource manager
            ResourceManager resources = new System.Resources.ResourceManager(typeof(Images));

            // determine imageValue
            switch (imageValue)
            {
            case ButtonImagesEnum.DeepBlue:

                // if this image exists in resource file
                if (resources.GetObject("DeepBlue") as Bitmap != null)
                {
                    // set image to VistaDisabled
                    image = (Bitmap)resources.GetObject("DeepBlue");
                }

                // required
                break;

            case ButtonImagesEnum.DeepGray:

                // if this image exists in resource file
                if (resources.GetObject("DeepGray") as Bitmap != null)
                {
                    // set image to VistaSelected
                    image = (Bitmap)resources.GetObject("DeepGray");
                }

                // required
                break;
            }

            // return value
            return(image);
        }
Example #51
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Popup));
     this.songLabel   = new System.Windows.Forms.Label();
     this.artistLabel = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // songLabel
     //
     this.songLabel.BackColor = System.Drawing.Color.Black;
     this.songLabel.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.songLabel.ForeColor = System.Drawing.Color.White;
     this.songLabel.Location  = new System.Drawing.Point(18, 8);
     this.songLabel.Name      = "songLabel";
     this.songLabel.Size      = new System.Drawing.Size(312, 23);
     this.songLabel.TabIndex  = 0;
     this.songLabel.Text      = "Some Song Name Goes Here";
     this.songLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // artistLabel
     //
     this.artistLabel.BackColor = System.Drawing.Color.Black;
     this.artistLabel.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.artistLabel.ForeColor = System.Drawing.Color.White;
     this.artistLabel.Location  = new System.Drawing.Point(19, 33);
     this.artistLabel.Name      = "artistLabel";
     this.artistLabel.Size      = new System.Drawing.Size(300, 16);
     this.artistLabel.TabIndex  = 1;
     this.artistLabel.Text      = "Artist Name Here : Album Name Here";
     this.artistLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // Popup
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
     this.BackColor         = System.Drawing.SystemColors.Control;
     this.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize        = new System.Drawing.Size(340, 54);
     this.Controls.Add(this.artistLabel);
     this.Controls.Add(this.songLabel);
     this.Font            = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Location        = new System.Drawing.Point(800, 30);
     this.Name            = "Popup";
     this.Opacity         = 0;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
     this.Text            = "PopupWindow";
     this.TopMost         = true;
     this.TransparencyKey = System.Drawing.Color.White;
     this.ResumeLayout(false);
 }
        static public Image LookupImageResource(Type resourceManagerProvider, string resourceKey)
        {
            //foreach (PropertyInfo staticProperty in resourceManagerProvider.GetProperties(BindingFlags.Static | BindingFlags.NonPublic)) - do not working on public Resources
            foreach (PropertyInfo staticProperty in resourceManagerProvider.GetProperties())
            {
                if (staticProperty.PropertyType == typeof(System.Resources.ResourceManager))
                {
                    System.Resources.ResourceManager resourceManager = (System.Resources.ResourceManager)staticProperty.GetValue(null, null);
                    return((Image)resourceManager.GetObject(resourceKey));
                }
            }

            return(null);
        }
Example #53
0
 /// <summary>
 /// 从资源文件获取一个表情
 /// </summary>
 /// <param name="resName">文件名,不含后缀</param>
 /// <returns>返回一个资源 读取失败返回NULL</returns>
 public static Image ReadExpressionImage(string resName)
 {
     try
     {
         Assembly myAssembly;
         myAssembly = Assembly.GetExecutingAssembly();
         System.Resources.ResourceManager rm = new
                                               System.Resources.ResourceManager("MiniTalk.ExpressionImages", myAssembly);
         return(rm.GetObject(resName) as Image);
     }
     catch (Exception)
     {
         return(null);
     }
 }
Example #54
0
 /// <summary>
 /// Required method for Designer support - do not modify
 ///   the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmWinBoard));
     this.lvwWinBoard  = new System.Windows.Forms.ListView();
     this.colDirection = new System.Windows.Forms.ColumnHeader();
     this.colMessage   = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // lvwWinBoard
     //
     this.lvwWinBoard.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colDirection,
         this.colMessage
     });
     this.lvwWinBoard.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.lvwWinBoard.FullRowSelect = true;
     this.lvwWinBoard.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvwWinBoard.Location      = new System.Drawing.Point(0, 0);
     this.lvwWinBoard.Name          = "lvwWinBoard";
     this.lvwWinBoard.Size          = new System.Drawing.Size(248, 262);
     this.lvwWinBoard.TabIndex      = 143;
     this.lvwWinBoard.View          = System.Windows.Forms.View.Details;
     //
     // colDirection
     //
     this.colDirection.Text  = "Dir";
     this.colDirection.Width = 29;
     //
     // colMessage
     //
     this.colMessage.Text  = "Message";
     this.colMessage.Width = 199;
     //
     // frmWinBoard
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(248, 262);
     this.Controls.Add(this.lvwWinBoard);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "frmWinBoard";
     this.Text            = "WinBoard Message Log";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.frmWinBoard_Closing);
     this.ResumeLayout(false);
 }
Example #55
0
        /// <summary>
        /// <summary> Required method for Designer support  do not modify the contents of this method with the code editor. </summary> <summary> Required method for Designer support  do not modify the contents of this method with the code editor.
        /// </summary>
        /// </summary>
        /// <returns>void</returns>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources;
            resources      = new System.Resources.ResourceManager(typeof(TFrmStatus));
            this.btnOK     = new System.Windows.Forms.Button();
            this.txtStatus = new System.Windows.Forms.TextBox();
            this.SuspendLayout();

            /*  */
            /* btnOK */
            /*  */
            this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.btnOK.Location     = new System.Drawing.Point(144, 248);
            this.btnOK.Name         = "btnOK";
            this.btnOK.TabIndex     = 1;
            this.btnOK.Text         = "&OK";

            /*  */
            /* txtStatus */
            /*  */
            this.txtStatus.Anchor =
                ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top |
                                                        System.Windows.Forms.AnchorStyles.Bottom) |
                                                       System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
            this.txtStatus.Location   = new System.Drawing.Point(0, 8);
            this.txtStatus.Multiline  = true;
            this.txtStatus.Name       = "txtStatus";
            this.txtStatus.ReadOnly   = true;
            this.txtStatus.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtStatus.Size       = new System.Drawing.Size(372, 232);
            this.txtStatus.TabIndex   = 2;
            this.txtStatus.Text       = "";

            /*  */
            /* TFrmStatus */
            /*  */
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(376, 273);
            this.Controls.Add(this.txtStatus);
            this.Controls.Add(this.btnOK);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "TFrmStatus";
            this.Text = "Installing the OpenPetra patch";
            this.ResumeLayout(false);
        }
Example #56
0
        /// <summary>
        ///     Reloads resources for a property.
        /// </summary>
        /// <param name="control">
        ///     <c>Control</c> object for which resources should be reloaded.
        /// </param>
        /// <param name="propertyName">
        ///     Name of the property to reload.
        /// </param>
        /// <param name="resources">
        ///     <c>ResourceManager</c> object.
        /// </param>
        private void SetProperty(System.Windows.Forms.Control control, string propertyName, System.Resources.ResourceManager resources)
        {
            PropertyInfo propertyInfo = control.GetType().GetProperty(propertyName);

            if (propertyInfo != null)
            {
                string controlName = control.Name;
                if (control is System.Windows.Forms.Form)
                {
                    controlName = "$this";
                }
                object resObject = resources.GetObject(controlName + "." + propertyName, m_cultureInfo);
                if (resObject != null)
                {
                    propertyInfo.SetValue(control, Convert.ChangeType(resObject, propertyInfo.PropertyType), null);
                }
            }
        }
Example #57
0
        public static Assembly AssemblyResolverFromResources(object sender, ResolveEventArgs args)
        {
            string resourceName = new AssemblyName(args.Name).Name.Replace(".", "_").Replace("-", "_");

            if (resourceName.EndsWith("_resources"))
            {
                return(null);
            }
            var             baseAssembly    = System.Reflection.Assembly.GetAssembly(typeof(QuickConnectPluginExt));
            ResourceManager resourceManager = new System.Resources.ResourceManager(baseAssembly.GetName().Name + ".Properties.Resources", baseAssembly);
            var             resourceObject  = resourceManager.GetObject(resourceName);

            if (resourceObject != null)
            {
                return(Assembly.Load((byte[])resourceObject));
            }
            return(null);
        }
        public static Assembly AssemblyResolverFromResources(object sender, ResolveEventArgs args)
        {
            string resourceName = new AssemblyName(args.Name).Name.Replace(".", "_").Replace("-", "_");

            if (resourceName.EndsWith("_resources"))
            {
                return(null);
            }
            var             baseAssembly    = System.Reflection.Assembly.GetCallingAssembly();
            ResourceManager resourceManager = new System.Resources.ResourceManager(baseAssembly.GetName().Name + ".Properties.Resources", baseAssembly);

            byte[] resourceData = (byte[])resourceManager.GetObject(resourceName);
            if (resourceData != null)
            {
                return(Assembly.Load(resourceData));
            }
            return(null);
        }
Example #59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AsmView));
     this.tvAsm = new System.Windows.Forms.TreeView();
     this.SuspendLayout();
     //
     // tvAsm
     //
     this.tvAsm.BackColor          = System.Drawing.Color.WhiteSmoke;
     this.tvAsm.BorderStyle        = System.Windows.Forms.BorderStyle.None;
     this.tvAsm.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.tvAsm.ImageIndex         = -1;
     this.tvAsm.Location           = new System.Drawing.Point(0, 0);
     this.tvAsm.Name               = "tvAsm";
     this.tvAsm.SelectedImageIndex = -1;
     this.tvAsm.Size               = new System.Drawing.Size(756, 526);
     this.tvAsm.TabIndex           = 0;
     this.tvAsm.MouseDown         += new System.Windows.Forms.MouseEventHandler(this.MouseDown);
     this.tvAsm.MouseUp           += new System.Windows.Forms.MouseEventHandler(this.MouseUp);
     this.tvAsm.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.AfterSelect);
     this.tvAsm.BeforeExpand      += new System.Windows.Forms.TreeViewCancelEventHandler(this.BeforeExpand);
     //
     // AsmView
     //
     this.AllowDrop         = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.SystemColors.Control;
     this.ClientSize        = new System.Drawing.Size(756, 526);
     this.ControlBox        = false;
     this.Controls.Add(this.tvAsm);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Location        = new System.Drawing.Point(4, 4);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "AsmView";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
     this.DragDrop       += new System.Windows.Forms.DragEventHandler(this.AsmView_DragDrop);
     this.DragEnter      += new System.Windows.Forms.DragEventHandler(this.AsmView_DragEnter);
     this.ResumeLayout(false);
 }
Example #60
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RoomSelectionForm));
     this._roomsListBox = new System.Windows.Forms.ListBox();
     this._courseLabel  = new System.Windows.Forms.Label();
     this._numOfEnrolledStudentsLabel = new System.Windows.Forms.Label();
     this.label1        = new System.Windows.Forms.Label();
     this._okButton     = new System.Windows.Forms.Button();
     this._cancelButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // _roomsListBox
     //
     this._roomsListBox.AccessibleDescription = resources.GetString("_roomsListBox.AccessibleDescription");
     this._roomsListBox.AccessibleName        = resources.GetString("_roomsListBox.AccessibleName");
     this._roomsListBox.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_roomsListBox.Anchor")));
     this._roomsListBox.BackColor             = System.Drawing.Color.Gainsboro;
     this._roomsListBox.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("_roomsListBox.BackgroundImage")));
     this._roomsListBox.ColumnWidth           = ((int)(resources.GetObject("_roomsListBox.ColumnWidth")));
     this._roomsListBox.Dock                  = ((System.Windows.Forms.DockStyle)(resources.GetObject("_roomsListBox.Dock")));
     this._roomsListBox.Enabled               = ((bool)(resources.GetObject("_roomsListBox.Enabled")));
     this._roomsListBox.Font                  = ((System.Drawing.Font)(resources.GetObject("_roomsListBox.Font")));
     this._roomsListBox.HorizontalExtent      = ((int)(resources.GetObject("_roomsListBox.HorizontalExtent")));
     this._roomsListBox.HorizontalScrollbar   = ((bool)(resources.GetObject("_roomsListBox.HorizontalScrollbar")));
     this._roomsListBox.ImeMode               = ((System.Windows.Forms.ImeMode)(resources.GetObject("_roomsListBox.ImeMode")));
     this._roomsListBox.IntegralHeight        = ((bool)(resources.GetObject("_roomsListBox.IntegralHeight")));
     this._roomsListBox.ItemHeight            = ((int)(resources.GetObject("_roomsListBox.ItemHeight")));
     this._roomsListBox.Location              = ((System.Drawing.Point)(resources.GetObject("_roomsListBox.Location")));
     this._roomsListBox.Name                  = "_roomsListBox";
     this._roomsListBox.RightToLeft           = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_roomsListBox.RightToLeft")));
     this._roomsListBox.ScrollAlwaysVisible   = ((bool)(resources.GetObject("_roomsListBox.ScrollAlwaysVisible")));
     this._roomsListBox.Size                  = ((System.Drawing.Size)(resources.GetObject("_roomsListBox.Size")));
     this._roomsListBox.Sorted                = true;
     this._roomsListBox.TabIndex              = ((int)(resources.GetObject("_roomsListBox.TabIndex")));
     this._roomsListBox.Visible               = ((bool)(resources.GetObject("_roomsListBox.Visible")));
     this._roomsListBox.DoubleClick          += new System.EventHandler(this._roomsListBox_DoubleClick);
     this._roomsListBox.SelectedIndexChanged += new System.EventHandler(this._roomsListBox_SelectedIndexChanged);
     //
     // _courseLabel
     //
     this._courseLabel.AccessibleDescription = resources.GetString("_courseLabel.AccessibleDescription");
     this._courseLabel.AccessibleName        = resources.GetString("_courseLabel.AccessibleName");
     this._courseLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_courseLabel.Anchor")));
     this._courseLabel.AutoSize    = ((bool)(resources.GetObject("_courseLabel.AutoSize")));
     this._courseLabel.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("_courseLabel.Dock")));
     this._courseLabel.Enabled     = ((bool)(resources.GetObject("_courseLabel.Enabled")));
     this._courseLabel.Font        = ((System.Drawing.Font)(resources.GetObject("_courseLabel.Font")));
     this._courseLabel.Image       = ((System.Drawing.Image)(resources.GetObject("_courseLabel.Image")));
     this._courseLabel.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("_courseLabel.ImageAlign")));
     this._courseLabel.ImageIndex  = ((int)(resources.GetObject("_courseLabel.ImageIndex")));
     this._courseLabel.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("_courseLabel.ImeMode")));
     this._courseLabel.Location    = ((System.Drawing.Point)(resources.GetObject("_courseLabel.Location")));
     this._courseLabel.Name        = "_courseLabel";
     this._courseLabel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_courseLabel.RightToLeft")));
     this._courseLabel.Size        = ((System.Drawing.Size)(resources.GetObject("_courseLabel.Size")));
     this._courseLabel.TabIndex    = ((int)(resources.GetObject("_courseLabel.TabIndex")));
     this._courseLabel.Text        = resources.GetString("_courseLabel.Text");
     this._courseLabel.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("_courseLabel.TextAlign")));
     this._courseLabel.Visible     = ((bool)(resources.GetObject("_courseLabel.Visible")));
     //
     // _numOfEnrolledStudentsLabel
     //
     this._numOfEnrolledStudentsLabel.AccessibleDescription = resources.GetString("_numOfEnrolledStudentsLabel.AccessibleDescription");
     this._numOfEnrolledStudentsLabel.AccessibleName        = resources.GetString("_numOfEnrolledStudentsLabel.AccessibleName");
     this._numOfEnrolledStudentsLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_numOfEnrolledStudentsLabel.Anchor")));
     this._numOfEnrolledStudentsLabel.AutoSize    = ((bool)(resources.GetObject("_numOfEnrolledStudentsLabel.AutoSize")));
     this._numOfEnrolledStudentsLabel.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("_numOfEnrolledStudentsLabel.Dock")));
     this._numOfEnrolledStudentsLabel.Enabled     = ((bool)(resources.GetObject("_numOfEnrolledStudentsLabel.Enabled")));
     this._numOfEnrolledStudentsLabel.Font        = ((System.Drawing.Font)(resources.GetObject("_numOfEnrolledStudentsLabel.Font")));
     this._numOfEnrolledStudentsLabel.Image       = ((System.Drawing.Image)(resources.GetObject("_numOfEnrolledStudentsLabel.Image")));
     this._numOfEnrolledStudentsLabel.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("_numOfEnrolledStudentsLabel.ImageAlign")));
     this._numOfEnrolledStudentsLabel.ImageIndex  = ((int)(resources.GetObject("_numOfEnrolledStudentsLabel.ImageIndex")));
     this._numOfEnrolledStudentsLabel.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("_numOfEnrolledStudentsLabel.ImeMode")));
     this._numOfEnrolledStudentsLabel.Location    = ((System.Drawing.Point)(resources.GetObject("_numOfEnrolledStudentsLabel.Location")));
     this._numOfEnrolledStudentsLabel.Name        = "_numOfEnrolledStudentsLabel";
     this._numOfEnrolledStudentsLabel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_numOfEnrolledStudentsLabel.RightToLeft")));
     this._numOfEnrolledStudentsLabel.Size        = ((System.Drawing.Size)(resources.GetObject("_numOfEnrolledStudentsLabel.Size")));
     this._numOfEnrolledStudentsLabel.TabIndex    = ((int)(resources.GetObject("_numOfEnrolledStudentsLabel.TabIndex")));
     this._numOfEnrolledStudentsLabel.Text        = resources.GetString("_numOfEnrolledStudentsLabel.Text");
     this._numOfEnrolledStudentsLabel.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("_numOfEnrolledStudentsLabel.TextAlign")));
     this._numOfEnrolledStudentsLabel.Visible     = ((bool)(resources.GetObject("_numOfEnrolledStudentsLabel.Visible")));
     //
     // label1
     //
     this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
     this.label1.AccessibleName        = resources.GetString("label1.AccessibleName");
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
     this.label1.AutoSize    = ((bool)(resources.GetObject("label1.AutoSize")));
     this.label1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
     this.label1.Enabled     = ((bool)(resources.GetObject("label1.Enabled")));
     this.label1.Font        = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
     this.label1.Image       = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
     this.label1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
     this.label1.ImageIndex  = ((int)(resources.GetObject("label1.ImageIndex")));
     this.label1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
     this.label1.Location    = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
     this.label1.Name        = "label1";
     this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
     this.label1.Size        = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
     this.label1.TabIndex    = ((int)(resources.GetObject("label1.TabIndex")));
     this.label1.Text        = resources.GetString("label1.Text");
     this.label1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
     this.label1.Visible     = ((bool)(resources.GetObject("label1.Visible")));
     //
     // _okButton
     //
     this._okButton.AccessibleDescription = resources.GetString("_okButton.AccessibleDescription");
     this._okButton.AccessibleName        = resources.GetString("_okButton.AccessibleName");
     this._okButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_okButton.Anchor")));
     this._okButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("_okButton.BackgroundImage")));
     this._okButton.DialogResult    = System.Windows.Forms.DialogResult.OK;
     this._okButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("_okButton.Dock")));
     this._okButton.Enabled         = ((bool)(resources.GetObject("_okButton.Enabled")));
     this._okButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("_okButton.FlatStyle")));
     this._okButton.Font            = ((System.Drawing.Font)(resources.GetObject("_okButton.Font")));
     this._okButton.Image           = ((System.Drawing.Image)(resources.GetObject("_okButton.Image")));
     this._okButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("_okButton.ImageAlign")));
     this._okButton.ImageIndex      = ((int)(resources.GetObject("_okButton.ImageIndex")));
     this._okButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("_okButton.ImeMode")));
     this._okButton.Location        = ((System.Drawing.Point)(resources.GetObject("_okButton.Location")));
     this._okButton.Name            = "_okButton";
     this._okButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_okButton.RightToLeft")));
     this._okButton.Size            = ((System.Drawing.Size)(resources.GetObject("_okButton.Size")));
     this._okButton.TabIndex        = ((int)(resources.GetObject("_okButton.TabIndex")));
     this._okButton.Text            = resources.GetString("_okButton.Text");
     this._okButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("_okButton.TextAlign")));
     this._okButton.Visible         = ((bool)(resources.GetObject("_okButton.Visible")));
     //
     // _cancelButton
     //
     this._cancelButton.AccessibleDescription = resources.GetString("_cancelButton.AccessibleDescription");
     this._cancelButton.AccessibleName        = resources.GetString("_cancelButton.AccessibleName");
     this._cancelButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_cancelButton.Anchor")));
     this._cancelButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("_cancelButton.BackgroundImage")));
     this._cancelButton.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("_cancelButton.Dock")));
     this._cancelButton.Enabled         = ((bool)(resources.GetObject("_cancelButton.Enabled")));
     this._cancelButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("_cancelButton.FlatStyle")));
     this._cancelButton.Font            = ((System.Drawing.Font)(resources.GetObject("_cancelButton.Font")));
     this._cancelButton.Image           = ((System.Drawing.Image)(resources.GetObject("_cancelButton.Image")));
     this._cancelButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("_cancelButton.ImageAlign")));
     this._cancelButton.ImageIndex      = ((int)(resources.GetObject("_cancelButton.ImageIndex")));
     this._cancelButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("_cancelButton.ImeMode")));
     this._cancelButton.Location        = ((System.Drawing.Point)(resources.GetObject("_cancelButton.Location")));
     this._cancelButton.Name            = "_cancelButton";
     this._cancelButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_cancelButton.RightToLeft")));
     this._cancelButton.Size            = ((System.Drawing.Size)(resources.GetObject("_cancelButton.Size")));
     this._cancelButton.TabIndex        = ((int)(resources.GetObject("_cancelButton.TabIndex")));
     this._cancelButton.Text            = resources.GetString("_cancelButton.Text");
     this._cancelButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("_cancelButton.TextAlign")));
     this._cancelButton.Visible         = ((bool)(resources.GetObject("_cancelButton.Visible")));
     //
     // RoomSelectionForm
     //
     this.AcceptButton          = this._okButton;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this._cancelButton;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this.label1);
     this.Controls.Add(this._numOfEnrolledStudentsLabel);
     this.Controls.Add(this._courseLabel);
     this.Controls.Add(this._roomsListBox);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "RoomSelectionForm";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.ShowInTaskbar   = false;
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.ResumeLayout(false);
 }