Example #1
0
        public async void AddGuiSettings(View view)
        {
            if (client == null || string.IsNullOrWhiteSpace(textNewToDo.Text))
            {
                return;
            }

            // Create a new item
            var guisetting = new GuiSettings {
                //Text = textNewToDo.Text

                //add collum = value
                //for each collumn
                //leave complete it is nessecary for the localdb

                Complete = false
            };

            try {
                await guisettingsTable.InsertAsync(guisetting); // insert the new item into the local database
                await SyncAsync();                              // send changes to the mobile service

                if (!guisetting.Complete)
                {
                    adapter.Add(guisetting);
                }
            } catch (Exception e) {
                CreateAndShowDialog(e, "Error");
            }

            textNewToDo.Text = "";
        }
Example #2
0
        public new void Update()
        {
            if (Device == null)
            {
                SuspendLayout();

                mIndexLabel.Text       = "";
                mStatusLabel.BackColor = Color.Gray;
                mStatusLabel.Text      = "";
                ToolTip?.SetToolTip(mStatusLabel, "No device connected");

                mInputMenuItem.Checked  = false;
                mOutputMenuItem.Checked = false;

                ResumeLayout();
            }
            else
            {
                SuspendLayout();

                mIndexLabel.Text       = Device.Id + ":";
                mStatusLabel.BackColor = GuiSettings.GetColor(Device.Busy ? GuiSettings.DeviceBusy : GuiSettings.DeviceIdle);
                mStatusLabel.Text      = Device.ShortName;
                ToolTip?.SetToolTip(mStatusLabel, Device.StatusDescription);
                mInputMenuItem.Checked  = Device.SupportsInput;
                mOutputMenuItem.Checked = Device.SupportsOutput;

                ResumeLayout();
            }
        }
Example #3
0
 public void UpdateLayout()
 {
     mFirstRecordTextBox.UpdateLayout();
     mMixCharButtons.UpdateLayout();
     mMixByteCollectionEditorList.UpdateLayout();
     mMixByteCollectionEditorList.BackColor = GuiSettings.GetColor(GuiSettings.EditorBackground);
 }
Example #4
0
        [STAThread] //Single Apartment Thread only
        static void Main()
        {
            Logger.Init();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);

            _splashScreen = new FormSplashScreen();

            Application.Run(_splashScreen);
#if !DEBUG
            if (_splashScreen.DialogResult == DialogResult.OK)
            {
#endif
            _splashScreen.Dispose();
            Application.Run(new FormMainScreen());
#if !DEBUG
        }
#endif

            if (Server.ShuttingDown || Server.Running)
            {
                Server.Stop();
                ServerSettings.Save();
                GuiSettings.Save();
            }
        }
Example #5
0
        void InitializeComponent()
        {
            SuspendLayout();

            mWordIndexLabel.Font      = GuiSettings.GetFont(GuiSettings.FixedWidth);
            mWordIndexLabel.ForeColor = GuiSettings.GetColor(GuiSettings.AddressText);
            mWordIndexLabel.Location  = new Point(0, 4);
            mWordIndexLabel.Name      = "mWordIndexLabel";
            mWordIndexLabel.Size      = new Size(30, 13);
            mWordIndexLabel.TabIndex  = 0;
            mWordIndexLabel.Text      = "00:";

            mFullWordEditor.Location           = new Point(mWordIndexLabel.Right, 2);
            mFullWordEditor.Name               = "mFullWordEditor";
            mFullWordEditor.TabIndex           = 1;
            mFullWordEditor.ValueChanged      += MFullWordEditor_ValueChanged;
            mFullWordEditor.NavigationKeyDown += This_KeyDown;

            Controls.Add(mWordIndexLabel);
            Controls.Add(mFullWordEditor);
            Name     = "DeviceWordEditor";
            Size     = new Size(mFullWordEditor.Right + 2, mFullWordEditor.Height + 3);
            KeyDown += This_KeyDown;
            ResumeLayout(false);
        }
Example #6
0
        void InitializeComponent()
        {
            SuspendLayout();

            mMixByteCollectionIndexLabel.Font      = GuiSettings.GetFont(GuiSettings.FixedWidth);
            mMixByteCollectionIndexLabel.ForeColor = GuiSettings.GetColor(GuiSettings.AddressText);
            mMixByteCollectionIndexLabel.Location  = new Point(0, 0);
            mMixByteCollectionIndexLabel.Name      = "mMixByteCollectionIndexLabel";
            mMixByteCollectionIndexLabel.Size      = new Size(30, 13);
            mMixByteCollectionIndexLabel.AutoSize  = true;
            mMixByteCollectionIndexLabel.TabIndex  = 0;
            mMixByteCollectionIndexLabel.Text      = "00:";

            mCharTextBox.Location           = new Point(mMixByteCollectionIndexLabel.Right, 0);
            mCharTextBox.Name               = "mCharTextBox";
            mCharTextBox.TabIndex           = 1;
            mCharTextBox.ValueChanged      += MMixByteCollectionEditor_ValueChanged;
            mCharTextBox.NavigationKeyDown += This_KeyDown;
            mCharTextBox.Anchor             = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            mCharTextBox.BorderStyle        = BorderStyle.None;
            mCharTextBox.Height             = 13;

            Controls.Add(mMixByteCollectionIndexLabel);
            Controls.Add(mCharTextBox);
            Name     = "DeviceMixByteCollectionEditor";
            Size     = new Size(mCharTextBox.Right, mCharTextBox.Height);
            KeyDown += This_KeyDown;
            ResumeLayout(false);
        }
        public void UpdateLayout()
        {
            var font = GuiSettings.GetFont(GuiSettings.FixedWidth);

            mDeltaButton.Font = font;
            mSigmaButton.Font = font;
            mPiButton.Font    = font;
        }
 private void FormMainScreen_Shown(object sender, EventArgs e)
 {
     if (GuiSettings.GetSettingBoolean(GuiSettings.SHOW_NEWS_KEY))
     {
         using (var news = new NewsDialog())
             news.ShowDialog();
     }
 }
Example #9
0
 public void UpdateLayout()
 {
     mSourceBox.Font           = GuiSettings.GetFont(GuiSettings.FixedWidth);
     mSourceBox.BackColor      = GuiSettings.GetColor(GuiSettings.EditorBackground);
     mLineNumberColor          = GuiSettings.GetColor(GuiSettings.LineNumberText);
     mLineNumberSeparatorColor = GuiSettings.GetColor(GuiSettings.LineNumberSeparator);
     mLocColor     = GuiSettings.GetColor(GuiSettings.LocationFieldText);
     mOpColor      = GuiSettings.GetColor(GuiSettings.OpFieldText);
     mAddressColor = GuiSettings.GetColor(GuiSettings.AddressFieldText);
     mCommentColor = GuiSettings.GetColor(GuiSettings.CommentFieldText);
 }
Example #10
0
        public void UpdateLayout()
        {
            SuspendLayout();

            BackColor          = GuiSettings.GetColor(GuiSettings.EditorBackground);
            mRenderedTextColor = GuiSettings.GetColor(GuiSettings.RenderedText);
            mEditingTextColor  = GuiSettings.GetColor(GuiSettings.EditingText);
            ForeColor          = mRenderedTextColor;

            ResumeLayout();
        }
Example #11
0
        public void UpdateLayout()
        {
            mAddressLabel.Font      = GuiSettings.GetFont(GuiSettings.FixedWidth);
            mAddressLabel.ForeColor = GuiSettings.GetColor(GuiSettings.AddressText);
            if (mMarked)
            {
                mAddressPanel.BackColor = GuiSettings.GetColor(GuiSettings.ProgramCounterAddressBackground);
            }

            mFullWordEditor.UpdateLayout();
            mInstructionTextBox.UpdateLayout();

            UpdateProfilingLayout();
        }
Example #12
0
        public GuiSettings LoadGuiSettings()
        {
            GuiSettings result;

            if (!File.Exists(GuiSettingsFilePath))
            {
                result = new GuiSettings();
            }
            else
            {
                result = JsonConvert.DeserializeObject <GuiSettings>(File.ReadAllText(GuiSettingsFilePath));
            }

            return(result);
        }
Example #13
0
        public void UpdateLayout()
        {
            var font  = GuiSettings.GetFont(GuiSettings.FixedWidth);
            var color = GuiSettings.GetColor(GuiSettings.TeletypeInputText);

            mPromptLabel.Font      = font;
            mPromptLabel.ForeColor = color;

            mInputTextBox.Font      = font;
            mInputTextBox.ForeColor = color;
            mInputTextBox.BackColor = GuiSettings.GetColor(GuiSettings.TeletypeInputBackground);

            mOutputTextBox.Font      = font;
            mOutputTextBox.ForeColor = GuiSettings.GetColor(GuiSettings.TeletypeOutputText);
            mOutputTextBox.BackColor = GuiSettings.GetColor(GuiSettings.TeletypeOutputBackground);
        }
        public MixCharClipboardButtonControl()
        {
            mDeltaButton = new Button();
            mSigmaButton = new Button();
            mPiButton    = new Button();

            SuspendLayout();

            var font = GuiSettings.GetFont(GuiSettings.FixedWidth);

            mDeltaButton.FlatStyle = FlatStyle.Flat;
            mDeltaButton.Font      = font;
            mDeltaButton.Location  = new Point(0, 0);
            mDeltaButton.Name      = "mDeltaButton";
            mDeltaButton.Size      = new Size(21, 21);
            mDeltaButton.TabIndex  = 0;
            mDeltaButton.Text      = "Δ";
            mDeltaButton.Click    += ClipboardButton_Click;

            mSigmaButton.FlatStyle = FlatStyle.Flat;
            mSigmaButton.Font      = font;
            mSigmaButton.Location  = new Point(mDeltaButton.Right - 1, 0);
            mSigmaButton.Name      = "mSigmaButton";
            mSigmaButton.Size      = mDeltaButton.Size;
            mSigmaButton.TabIndex  = 1;
            mSigmaButton.Text      = "Σ";
            mSigmaButton.Click    += ClipboardButton_Click;

            mPiButton.FlatStyle = FlatStyle.Flat;
            mPiButton.Font      = font;
            mPiButton.Location  = new Point(mSigmaButton.Right - 1, 0);
            mPiButton.Name      = "mPiButton";
            mPiButton.Size      = mDeltaButton.Size;
            mPiButton.TabIndex  = 2;
            mPiButton.Text      = "Π";
            mPiButton.Click    += ClipboardButton_Click;

            Controls.Add(mDeltaButton);
            Controls.Add(mSigmaButton);
            Controls.Add(mPiButton);
            Size = new Size(mPiButton.Right, mPiButton.Height);
            Name = "MemoryEditor";
            ResumeLayout(false);
        }
Example #15
0
        /// <summary>
        /// Creates a new instance of SettingProperties with standard values for filter, image, gui and loading settings. Saves the standard settings to a new JSON settings file.
        /// </summary>
        /// <returns>SettingProperties with standard values for further use.</returns>
        private SettingProperties CreateJsonSettingsWithStandardValues()
        {
            FilterSettings filter = new FilterSettings
            {
                Canny                      = 0.5f,
                BinaryGauss                = 0.5f,
                BinaryThreshold            = 0.5f,
                GreenBrightness            = 0.25f,
                GreenHigh                  = 170,
                GreenLow                   = 50,
                GreenSaturation            = 0.5f,
                MinimalOutlineSizeChunking = 9000,
                Schmiering                 = 2,
                ChunkBorder                = 5
            };

            GuiSettings guiSettings = new GuiSettings {
                TextToSpeechIsEnabled = true, PythonInterpreterPath = Properties.Resources.StandardPythonInterpreterPath, TfModelMode = Properties.Resources.ModelNumber
            };

            ImageSettings imageSettings = new ImageSettings {
                Border = 2, Dimension = 28, DimensionSmall = 26
            };

            List <string> loadingPictureStrings = new List <string> {
                Properties.Resources.ImageTypePNG, Properties.Resources.ImageTypeJPG
            };
            LoadingSettings loadingSettings = new LoadingSettings {
                PossibleImageFileTypes = loadingPictureStrings
            };

            SettingProperties settingsProperties = new SettingProperties
            {
                FilterSettings  = filter,
                ImageSettings   = imageSettings,
                GuiSettings     = guiSettings,
                LoadingSettings = loadingSettings
            };

            SaveSettingsToJsonFile(settingsProperties);

            return(settingsProperties);
        }
Example #16
0
        public void UpdateLayout()
        {
            SuspendLayout();
            mUpdating = true;

            Font = GuiSettings.GetFont(GuiSettings.FixedWidth);
            mRenderedTextColor                = GuiSettings.GetColor(GuiSettings.RenderedText);
            mEditingTextColor                 = GuiSettings.GetColor(GuiSettings.EditingText);
            mErrorTextColor                   = GuiSettings.GetColor(GuiSettings.ErrorText);
            mImmutableTextColor               = GuiSettings.GetColor(GuiSettings.ImmutableText);
            mEditorBackgroundColor            = GuiSettings.GetColor(GuiSettings.EditorBackground);
            mLoadedInstructionTextColor       = GuiSettings.GetColor(GuiSettings.LoadedInstructionText);
            mLoadedInstructionBackgroundColor = GuiSettings.GetColor(GuiSettings.LoadedInstructionBackground);
            ForeColor = mLastRenderedSourceLine != null ? mLoadedInstructionTextColor : mRenderedTextColor;
            BackColor = mLastRenderedSourceLine != null ? mLoadedInstructionBackgroundColor : mEditorBackgroundColor;

            mUpdating = false;
            ResumeLayout();
        }
Example #17
0
 public ApplicationSettings()
 {
     Queue = new QueueSettings(this);
     BitTorrent = new BitTorrentSettings(this);
     DiskIO = new DiskIOSettings(this);
     Seed = new SeedSettings(this);
     Peer = new PeerSettings(this);
     Net = new NetSettings(this);
     Statistics = new StatsSettings(this);
     Gui = new GuiSettings(this);
     Isp = new IspSettings(this);
     Scheduling = new SchedulingSettings(this);
     Show = new ShowSettings(this);
     Webui = new WebuiSettings(this);
     Streaming = new StreamingSettings(this);
     Directory = new DirectorySettings(this);
     Transfer = new MultidayTransferSettings(this);
     Proxy = new ProxySettings(this);
     Cache = new CacheSettings(this);
 }
Example #18
0
        void Awake()
        {
            isSetGuiStyle           = false;
            camera.orthographicSize = Screen.height / 2.0f;

            Unity.Function.Graphic.Gui.camera = camera;
            GameObject objGuiStyleSet = GameObject.Find("GuiStyleSet");
            GameObject objGuiSettings = GameObject.Find("GuiSettings");

            GuiStyleSet.Reset(objGuiStyleSet);
            GuiSettings.Reset(objGuiSettings);

            AudioSettings.outputSampleRate = 44100;
            sampleRate = AudioSettings.outputSampleRate;

            applicationLoopEditor = new ApplicationLoopEditor(new DirectoryInfo(Application.streamingAssetsPath + "/Sound/Music"), new DirectoryInfo(Application.streamingAssetsPath + "/Sound"));

            soundBuffer = new Dictionary <int, float[]>();

            //masterStatus = new MasterStatus();
            //midiGeneratorArray = new MidiGenerator( masterStatus );
        }
Example #19
0
        public TextFileDeviceEditor()
        {
            InitializeComponent();

            mMixByteCollectionEditorList.BackColor = GuiSettings.GetColor(GuiSettings.EditorBackground);

            mReadOnlyGap             = mFirstRecordTextBox.Top;
            mBottomButtonsGap        = Height - mMixByteCollectionEditorList.Bottom;
            mShowReadOnly            = true;
            mRecordLabelFormatString = mFirstRecordLabel.Text;
            RecordName             = "record";
            mLastLoadTime          = DateTime.Now;
            mIODelayTimer.Interval = DeviceSettings.DeviceReloadInterval;

            mReadBytes = new List <IMixByteCollection>();
            mEditBytes = new List <IMixByteCollection>();

            SetDeviceRecordCount(1);

            mInitialized = false;
            mLoading     = false;
        }
Example #20
0
        public async Task CheckGuiSettings(GuiSettings guisetting)
        {
            if (client == null)
            {
                return;
            }

            // Set the item as completed and update it in the table
            guisetting.Complete = true;
            try
            {
                await guisettingsTable.UpdateAsync(guisetting); // update the new item in the local database
                await SyncAsync();                              // send changes to the mobile service

                if (guisetting.Complete)
                {
                    adapter.Remove(guisetting);
                }
            }
            catch (Exception e)
            {
                CreateAndShowDialog(e, "Error");
            }
        }
Example #21
0
 public void UpdateLayout()
 {
     mMixByteCollectionIndexLabel.Font      = GuiSettings.GetFont(GuiSettings.FixedWidth);
     mMixByteCollectionIndexLabel.ForeColor = GuiSettings.GetColor(GuiSettings.AddressText);
     mCharTextBox.UpdateLayout();
 }
Example #22
0
        private ListViewItemComparer.JobListItemComparer _lvwJobItemComparer; // joblist sorter

        #endregion Fields

        #region Constructors

        public GUI()
        {
            InitializeComponent();
            InitColumnsStyle();

            // look for logo in current directory
            //this.logo_webbrowser.Url = new System.Uri(Directory.GetCurrentDirectory() + "\\Tools\\small_bt_logo.gif", System.UriKind.Absolute);

            //Version vrs = new Version(Application.ProductVersion);

            // display a round edged rectangle. doesnt trace/work with borders though.
            //TestRoundRectanglePanel.Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, TestRoundRectanglePanel.Width - 10, TestRoundRectanglePanel.Height - 10, 20, 20));
            UpdateMainTitle();

            // The ListViewItemSorter property allows you to specify the object that performs the sorting of items in the ListView.
            // You can use the ListViewItemSorter property in combination with the Sort method to perform custom sorting.
            _lvwItemComparer = new ListViewItemComparer();

            _lvwItemComparerBadScenes = new ListViewItemComparer();
            BadSceneListView.ListViewItemSorter = _lvwItemComparerBadScenes;

            _lvwJobItemComparer = new ListViewItemComparer.JobListItemComparer();

            //GsummaryList = new BindingList<VStream>();
            SummaryList = new List<VStream>();
            //SummaryBindingList = new BindingList<VStream>();

            //GjobList = new BindingList<Job>();
            padlock = new object();
            jobList = new BindingList<Job>();

            CloseInterfaces();

            #region Threading / events init code. // setup events and the thread scanning the stream folders

            // init the qavod class

            qatool = new qavod.qaClass();

            // Wire up the qaclass event so we can respond to them when they fire
            //qatool.NewJobListEvent            += new qatoolEventH (onNewJobList);
            qatool.RemoveJobEvent += new qatoolEventH(RemoveJobFromList);
            qatool.EditJobEvent += new qatoolEventH(EditJobInList);
            qatool.AddJobEvent += new qatoolEventH(AddJobToList);
            FoldersManager.NewProfileForJobEvent += new qatoolEventH(EditJobInList);
            JobManager.RefreshJobEvent += new qatoolEventH(EditJobInList);
            JobManager.RefreshCoresEvent += new qatoolEventH2(updategui);

            //qatool.NewStreamListEvent         += new qatoolEventH (onNewStreamList);
            qatool.RemoveSummaryEvent += new qatoolEventH(RemoveSummaryFromList);
            qatool.EditSummaryEvent += new qatoolEventH(EditSummaryInList);
            qatool.AddSummaryEvent += new qatoolEventH(AddSummaryToList);

            Global.NewGuiLogEvent += new qatoolEventH(GuilogEvent);

            qatool.JobListButtonsEvent += new qatoolEventH(updatejoblistbuttons);
            qatool.UpdateGuiEvent += new qatoolEventH2(updategui);
            qaClass.UpdateGuisourceFoldersEvent += new qatoolEventH2(UpdateFoldersGui);
            WatchedFolder.UpdateGUIFoldersEvent += new qatoolEventH2(UpdateFoldersGui);

            refreshListTimer.Interval = 1000;
            refreshListTimer.Enabled = true;

            ResultListView = new BrightIdeasSoftware.DataListView();
            //ResultListView = new BrightIdeasSoftware.FastObjectListView();
            FailedResultListView = new BrightIdeasSoftware.DataListView();
            JobListView = new BrightIdeasSoftware.DataListView();

            // load gui settings
            GUIsettings = new GuiSettings();
            GUIsettings = GUIsettings.Load();

            // set joblist view bindings
            SetJoblistBinding();

            // set results view bindings
            SetResultListBinding();
            SetFailedResultListBinding(); //Melek

            // Restore GUI settings
            RestoreGUIsettings();

            // Set up and run the qavod thread and start monitoring streams
            qatoolThread = new Thread(new ThreadStart(qatool.MonitorStreams)) { Name = "Monitor Streams" };
            qatoolThread.Start();

            #endregion
        }
Example #23
0
 public void SaveGuiSettings(GuiSettings settings)
 {
     Directory.CreateDirectory(AppDataPath);
     File.WriteAllText(GuiSettingsFilePath, JsonConvert.SerializeObject(settings, Formatting.Indented));
 }
 private void button1_Click(object sender, EventArgs e)
 {
     GuiSettings.SetSetting(GuiSettings.SHOW_NEWS_KEY, null, (!checkBox1.Checked).ToString());
     GuiSettings.Save();
     Close();
 }
        private void NewsDialog_Load(object sender, EventArgs e)
        {
            mNewsFetcher.RunWorkerAsync();

            checkBox1.Checked = !GuiSettings.GetSettingBoolean(GuiSettings.SHOW_NEWS_KEY);
        }
Example #26
0
        void InitializeComponent()
        {
            mAddressPanel.SuspendLayout();
            SuspendLayout();

            mBreakPointBox.Location        = new Point(2, 2);
            mBreakPointBox.Name            = "mBreakPointBox";
            mBreakPointBox.Size            = new Size(16, 17);
            mBreakPointBox.TabIndex        = 0;
            mBreakPointBox.CheckedChanged += MBreakPointBox_CheckedChanged;

            mAddressLabel.Font         = GuiSettings.GetFont(GuiSettings.FixedWidth);
            mAddressLabel.ForeColor    = GuiSettings.GetColor(GuiSettings.AddressText);
            mAddressLabel.Location     = new Point(mBreakPointBox.Right, mBreakPointBox.Top - 1);
            mAddressLabel.Name         = "mAddressLabel";
            mAddressLabel.Size         = new Size(45, mBreakPointBox.Height);
            mAddressLabel.TabIndex     = 1;
            mAddressLabel.Text         = "0000";
            mAddressLabel.TextAlign    = ContentAlignment.MiddleCenter;
            mAddressLabel.DoubleClick += MAddressLabel_DoubleClick;

            mAddressPanel.Controls.Add(mBreakPointBox);
            mAddressPanel.Controls.Add(mAddressLabel);
            mAddressPanel.Size     = new Size(mAddressLabel.Right, 21);
            mAddressPanel.Location = new Point(0, 1);
            mAddressLabel.TabIndex = 0;

            mColonLabel.Location = new Point(mAddressPanel.Right, mAddressPanel.Top + 3);
            mColonLabel.Name     = "mFirstEqualsLabel";
            mColonLabel.Size     = new Size(10, mAddressLabel.Height - 3);
            mColonLabel.TabIndex = 1;
            mColonLabel.Text     = ":";

            mFullWordEditor.Location           = new Point(mColonLabel.Right, mAddressPanel.Top);
            mFullWordEditor.Name               = "mFullWordEditor";
            mFullWordEditor.TabIndex           = 2;
            mFullWordEditor.ValueChanged      += MFullWordEditor_ValueChanged;
            mFullWordEditor.NavigationKeyDown += This_KeyDown;

            mEqualsLabel.Location = new Point(mFullWordEditor.Right, mFullWordEditor.Top + 2);
            mEqualsLabel.Name     = "mEqualsLabel";
            mEqualsLabel.Size     = new Size(10, 19);
            mEqualsLabel.TabIndex = 3;
            mEqualsLabel.Text     = "=";

            mInstructionTextBox.Anchor           = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom;
            mInstructionTextBox.Dock             = DockStyle.Fill;
            mInstructionTextBox.BorderStyle      = BorderStyle.None;
            mInstructionTextBox.Location         = new Point(0, 0);
            mInstructionTextBox.Multiline        = false;
            mInstructionTextBox.Name             = "mInstructionTextBox";
            mInstructionTextBox.Size             = new Size(128, 21);
            mInstructionTextBox.TabIndex         = 0;
            mInstructionTextBox.KeyDown         += This_KeyDown;
            mInstructionTextBox.ValueChanged    += MInstructionTextBox_ValueChanged;
            mInstructionTextBox.AddressSelected += MInstructionTextBox_AddressSelected;
            mInstructionTextBox.MouseWheel      += MInstructionTextBox_MouseWheel;

            mInstructionPanel.Controls.Add(mInstructionTextBox);
            mInstructionPanel.Anchor      = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            mInstructionPanel.Location    = new Point(mEqualsLabel.Right, mFullWordEditor.Top);
            mInstructionPanel.Size        = new Size(mInstructionTextBox.Width, 21);
            mInstructionPanel.TabIndex    = 4;
            mInstructionPanel.BorderStyle = BorderStyle.FixedSingle;

            mColonLabel2.Location  = new Point(mInstructionPanel.Right, mAddressPanel.Top + 3);
            mColonLabel2.Anchor    = AnchorStyles.Top | AnchorStyles.Right;
            mColonLabel2.Name      = "mColonLabel2";
            mColonLabel2.Size      = new Size(10, mAddressLabel.Height - 3);
            mColonLabel2.TabIndex  = 5;
            mColonLabel2.Text      = "x";
            mColonLabel2.TextAlign = ContentAlignment.MiddleCenter;

            mProfileLabel.Anchor      = AnchorStyles.Right | AnchorStyles.Top;
            mProfileLabel.Location    = new Point(mColonLabel2.Right, mInstructionPanel.Top);
            mProfileLabel.Size        = new Size(64, mInstructionPanel.Height);
            mProfileLabel.Name        = "mProfileLabel";
            mProfileLabel.TabIndex    = 6;
            mProfileLabel.Text        = "0";
            mProfileLabel.TextAlign   = ContentAlignment.MiddleRight;
            mProfileLabel.BorderStyle = BorderStyle.FixedSingle;

            Controls.Add(mAddressPanel);
            Controls.Add(mColonLabel);
            Controls.Add(mFullWordEditor);
            Controls.Add(mEqualsLabel);
            Controls.Add(mInstructionPanel);
            Controls.Add(mColonLabel2);
            Controls.Add(mProfileLabel);
            Name     = "MemoryWordEditor";
            Size     = new Size(mProfileLabel.Right + 2, mInstructionPanel.Height + 3);
            KeyDown += This_KeyDown;

            mAddressPanel.ResumeLayout(false);
            ResumeLayout(false);
        }
Example #27
0
 public void UpdateLayout()
 {
     mWordIndexLabel.Font      = GuiSettings.GetFont(GuiSettings.FixedWidth);
     mWordIndexLabel.ForeColor = GuiSettings.GetColor(GuiSettings.AddressText);
     mFullWordEditor.UpdateLayout();
 }
Example #28
0
 public void UpdateLayout()
 {
     mStatusLabel.Font = GuiSettings.GetFont(GuiSettings.FixedWidth);
     Update();
 }