Beispiel #1
1
        private static void InsertInfoRun(string Key, GridEX grid, bool DontInsertNull)
        {
            Cursor.Current = Cursors.WaitCursor;
            grid.ClearItems();

            ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from " + Key);

            DateTime start = DateTime.Now;

            bool cancel = false;

            Thread t = new Thread( new ThreadStart(delegate() {
                bool run = true;

                while (run)
                {
                    TimeSpan elapsed = DateTime.Now.Subtract(start);

                    if (elapsed.Seconds > 5)
                    {
                        DialogResult res = MessageBox.Show("This operation could take a while, would you like to continue?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

                        if (res == DialogResult.Yes)
                        {
                            run = false;
                        }
                        else
                        {
                            cancel = true;
                            run = false;                            
                        }
                    }

                    Thread.Sleep(100);
                }
            }));
            t.Start();


            try
            {
                foreach (ManagementObject share in searcher.Get())
                {
                    foreach (PropertyData PC in share.Properties)
                    {
                        if (cancel)
                        {
                            return;
                        }

                        if (PC.Value != null && PC.Value.ToString() != "")
                        {
                            grid.AddItem(new object[] { PC.Name, PC.Value, share["Name"].ToString() });
                        }
                        else
                        {
                            if (!DontInsertNull)
                                grid.AddItem(new object[] { PC.Name, "No Information available", share["Name"].ToString() });
                            else
                                continue;
                        }
                    }
                }
            }
            catch (Exception exp)
            {
                t.Abort();
                Cursor.Current = Cursors.Default;

                MessageBox.Show("Data could not be loaded: " + exp.Message +"\n\n" +
                "Some data is unavailable in certain hardware or software configurations. " +
                "If you have any concerns please contact the manufacturer of the device you " +
                "were trying to obtain information for", exp.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            if (t.ThreadState != ThreadState.Aborted)
            {
                t.Abort();
            }

            Cursor.Current = Cursors.Default;
        }
        public void BindDataSet(GridEX grid, int userId)
        {
            dataTable.Clear();

            SqlCommand cmdSelect = new SqlCommand();

            cmdSelect.Connection  = dbConnection.Connection;
            cmdSelect.CommandType = CommandType.Text;
            cmdSelect.CommandText = string.Format("SELECT uu.id, uu.UzytkownikId, uu.UprawnieniaId, uu.Poziom, up.Uprawnienie " +
                                                  "FROM [UzytkownicyUprawnienia] uu " +
                                                  "LEFT JOIN [Uprawnienia] up ON up.Id = uu.UprawnieniaId " +
                                                  string.Format("WHERE uu.UzytkownikId = {0}", userId));
            dataAdapter.SelectCommand = cmdSelect;

            SqlCommand cmdUpdate = new SqlCommand();

            cmdUpdate.Connection  = dbConnection.Connection;
            cmdUpdate.CommandType = CommandType.Text;
            cmdUpdate.CommandText = string.Format("UPDATE [UzytkownicyUprawnienia] SET Poziom = @poziom WHERE [id] = @id");
            cmdUpdate.Parameters.Add("@id", SqlDbType.Int, 6, "Id");
            cmdUpdate.Parameters.Add("@poziom", SqlDbType.VarChar, 5, "Poziom");
            dataAdapter.UpdateCommand = cmdUpdate;

            dataAdapter.Fill(dataTable);
            grid.DataSource = dataTable;
        }
Beispiel #3
0
        public void BinGrid(GridEX gridEx)
        {
            List <Device> mang         = Devices.ToList();
            var           FilenameList = new BindingList <Device>(mang);

            gridEx.DataSource = FilenameList;
        }
Beispiel #4
0
        private void Recalc()
        {
            DbContext.GameSet.Where(f => f.StageId == Stage.Id).Load();
            DbContext.GameResultSet.Where(f => f.Game.StageId == Stage.Id).Load();
            DbContext.GameResultValueSet.Where(f => f.GameResult.Game.StageId == Stage.Id).Load();

            var result = new BindingList <TeamScore>();

            foreach (var game in DbContext.GameSet.Local)
            {
                var gameValues = ScaleResult(GameService.GetGameResultValues(game));



                var score = GameService.GetGameScore(game, gameValues, new StringBuilder());
                if (!score.HasValue)
                {
                    continue;
                }
                var item = new TeamScore()
                {
                    Team = game.Team, Score = score.Value
                };
                result.Add(item);
            }

            GridEX.DataSource = result;
            GridEX.Refetch();
        }
Beispiel #5
0
        public static void ExportToExcel(GridEX grid)
        {
//			ApplicationClass xls=new ApplicationClass();
//			Workbook wkb=xls.Workbooks.Add(Type.Missing);
//			Worksheet wks=(Worksheet) wkb.ActiveSheet;
//
//			int row=1;
//			int col=1;
//
//			((Range) wks.Cells[row,col]).Value2="Titulo";
//
//			row++;
//			col=1;
//			IList usedColumns=new ArrayList();
//			//Export the captions of the columns
//			foreach(GridEXColumn column in grid.RootTable.Columns)
//				if(column.Visible) {
//					((Range)wks.Cells[row,col++]).Value2=column.Caption;
//					usedColumns.Add(column);
//				}
//
//			//Export the values of the columns
//			foreach(GridEXRow gridRow in grid.GetRows()) {
//				row++;
//				col=1;
//				foreach(GridEXColumn column in usedColumns)
//					((Range)wks.Cells[row,col++]).Value2=gridRow.Cells[column].Value;
//			}
//
//			FormatWorksheet(wks, grid.RowCount, usedColumns.Count, 1, 2);
//			xls.Visible=true;
        }
Beispiel #6
0
        public void Save(GridEX grid, IGridLayoutKey key)
        {
            Stream stream = new FileStream(LayoutFileName(key), FileMode.Create);

            grid.SaveLayoutFile(stream);
            stream.Close();
        }
Beispiel #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.grdColumns = new Janus.Windows.GridEX.GridEX();
     ((System.ComponentModel.ISupportInitialize)(this.grdColumns)).BeginInit();
     this.SuspendLayout();
     //
     // grdColumns
     //
     this.grdColumns.ColumnAutoResize  = true;
     this.grdColumns.ColumnHeaders     = Janus.Windows.GridEX.InheritableBoolean.False;
     this.grdColumns.ColumnSetHeaders  = Janus.Windows.GridEX.InheritableBoolean.False;
     this.grdColumns.GridLines         = Janus.Windows.GridEX.GridLines.None;
     this.grdColumns.GroupByBoxVisible = false;
     this.grdColumns.Location          = new System.Drawing.Point(16, 8);
     this.grdColumns.Name              = "grdColumns";
     this.grdColumns.Size              = new System.Drawing.Size(184, 121);
     this.grdColumns.TabIndex          = 0;
     this.grdColumns.TabKeyBehavior    = Janus.Windows.GridEX.TabKeyBehavior.ControlNavigation;
     this.grdColumns.CellValueChanged += new Janus.Windows.GridEX.ColumnActionEventHandler(this.grdColumns_CellValueChanged);
     //
     // GridColumnsToolbox
     //
     this.Controls.Add(this.grdColumns);
     this.Name = "GridColumnsToolbox";
     this.Size = new System.Drawing.Size(216, 136);
     ((System.ComponentModel.ISupportInitialize)(this.grdColumns)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="centerCard"></param>
 public static void SetPropertiesToSingleCardView(this GridEX grid, bool centerCard)
 {
     grid.AllowAddNew          = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.AllowColumnDrag      = false;
     grid.AllowDelete          = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.AllowEdit            = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.AllowRemoveColumns   = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.AutoEdit             = false;
     grid.AutomaticSort        = true;
     grid.CardHeaders          = false;
     grid.CellSelectionMode    = Janus.Windows.GridEX.CellSelectionMode.EntireRow;
     grid.CellToolTip          = Janus.Windows.GridEX.CellToolTip.TruncatedText;
     grid.CenterSingleCard     = centerCard;
     grid.ColumnAutoResize     = true;
     grid.ColumnAutoSizeMode   = Janus.Windows.GridEX.ColumnAutoSizeMode.AllCellsAndHeader;
     grid.ColumnHeaders        = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.ExpandableCards      = false;
     grid.FilterMode           = Janus.Windows.GridEX.FilterMode.None;
     grid.FocusCellDisplayMode = Janus.Windows.GridEX.FocusCellDisplayMode.UseSelectedFormatStyle;
     grid.GridLines            = Janus.Windows.GridEX.GridLines.RowOutline;
     grid.GroupByBoxVisible    = false;
     grid.HideSelection        = Janus.Windows.GridEX.HideSelection.HighlightInactive;
     grid.SelectionMode        = Janus.Windows.GridEX.SelectionMode.SingleSelection;
     grid.TotalRow             = Janus.Windows.GridEX.InheritableBoolean.False;
     grid.View = Janus.Windows.GridEX.View.SingleCard;
 }
Beispiel #9
0
        public static void Configure(this GridEX grid, bool forEdit, bool allowFilter)
        {
            grid.AlternatingColors      = true;
            grid.BorderStyle            = BorderStyle.Flat;
            grid.HideSelection          = HideSelection.Highlight;
            grid.AllowRemoveColumns     = InheritableBoolean.False;
            grid.HideColumnsWhenGrouped = InheritableBoolean.True;
            grid.FilterRowButtonStyle   = FilterRowButtonStyle.ConditionOperatorDropDown;

            grid.FocusCellDisplayMode = forEdit ? FocusCellDisplayMode.UseFocusCellFormatStyle : FocusCellDisplayMode.UseSelectedFormatStyle;
            grid.AllowEdit            = forEdit ? InheritableBoolean.True : InheritableBoolean.False;

            grid.FilterMode           = allowFilter ? FilterMode.Automatic : FilterMode.None;
            grid.FilterRowUpdateMode  = FilterRowUpdateMode.WhenValueChanges;
            grid.UpdateMode           = UpdateMode.CellUpdate;
            grid.FilterRowButtonStyle = FilterRowButtonStyle.ConditionOperatorDropDown;

            //column: DefaultFilterRowComparison

#if !DEBUG
            grid.SaveSettings = true;
#endif
            grid.TotalRowPosition = TotalRowPosition.BottomFixed;
            grid.ColumnAutoResize = true;
            grid.AutoEdit         = true;
        }
Beispiel #10
0
 protected void RequireChildGridResetLayout(GridEX grid, Type type)
 {
     if (ChildGridResetLayout != null)
     {
         ChildGridResetLayout(grid, type);
     }
 }
Beispiel #11
0
        public void BindDataSet(GridEX grid, int agreementId)
        {
            this.dataTable.Clear();

            SqlCommand cmdSelect = new SqlCommand();

            cmdSelect.Connection           = dbConnection.Connection;
            cmdSelect.CommandType          = CommandType.Text;
            cmdSelect.CommandText          = string.Format("SELECT * FROM [dbo].[vPozycjeUmowy] WHERE UmowaId = {0}", agreementId);
            this.dataAdapter.SelectCommand = cmdSelect;

            SqlCommand cmdInsert = new SqlCommand();

            cmdInsert.Connection  = dbConnection.Connection;
            cmdInsert.CommandType = CommandType.Text;
            cmdInsert.CommandText = string.Format("INSERT INTO [PozycjaUmowy] (UmowaId, WprowadzenieUzytkownik) " +
                                                  "VALUES (@umowaId, @wprowadzenieUzytkownik)");
            cmdInsert.Parameters.Add("@umowaId", SqlDbType.Int, 6, "UmowaId");
            cmdInsert.Parameters.Add("@wprowadzenieUzytkownik", SqlDbType.Int, 6).Value = AppUser.Instance.UserId;
            this.dataAdapter.InsertCommand = cmdInsert;

            SqlCommand cmdDelete = new SqlCommand();

            cmdDelete.Connection  = dbConnection.Connection;
            cmdDelete.CommandType = CommandType.Text;
            cmdDelete.CommandText = string.Format("DELETE FROM [PozycjaUmowy] WHERE Id = @id");
            cmdDelete.Parameters.Add("@id", SqlDbType.Int, 6, "Id");
            this.dataAdapter.DeleteCommand = cmdDelete;

            this.dataAdapter.Fill(dataTable);
            grid.DataSource = dataTable;
        }
Beispiel #12
0
 /// <summary>
 /// Lấy id của các loại xét nghiệm
 /// </summary>
 /// <param name="dt"></param>
 /// <param name="grd"></param>
 /// <param name="colName"></param>
 /// <param name="errResult"></param>
 /// <returns></returns>
 private string GetIdString(DataTable dt, GridEX grd, string colName, string errResult)
 {
     try
     {
         string vResult = errResult;
         int    count   = 0;
         foreach (GridEXRow grdRow in grd.GetCheckedRows())
         {
             if (grdRow.IsChecked)
             {
                 vResult += "," + grdRow.Cells[colName].Value;
                 count   += 1;
             }
         }
         if (count == PreloadedLists.TestType.Rows.Count)
         {
             vResult = errResult;
         }
         return(vResult);
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
         return("-1");
     }
 }
        public void filterapply(GridEX grid, string filtername, CreateFilterForm hiddeninstanceinitialized)
        {
            foreach (string item in hiddeninstanceinitialized.comboBox7.Items)
            {
                if (item == filtername)
                {
                    hiddeninstanceinitialized.comboBox7.SelectedItem = filtername;
                    hiddeninstanceinitialized.comboBox7_SelectedIndexChanged(this, new EventArgs());

                    List <string> stacknames = new List <string>();
                    hiddeninstanceinitialized.processList(ref grid, false, 1, stacknames);
                }
            }
            foreach (string item in hiddeninstanceinitialized.comboBox1.Items)
            {
                if (item == filtername)
                {
                    hiddeninstanceinitialized.comboBox1.SelectedItem = filtername;
                    //hiddeninstanceinitialized.comboBox1_SelectedIndexChanged(this, new EventArgs());
                    GridEXColumn column = grid.RootTable.Columns[hiddeninstanceinitialized.comboBox5.SelectedValue.ToString()];


                    GridEXFilterCondition singlefiltercondtion = hiddenInstance.CreateSinglefilter(hiddenInstance.textBox6.Text, hiddenInstance.textBox7.Text, hiddenInstance.comboBox6.SelectedValue.ToString(), column);


                    grid.RootTable.FilterCondition = singlefiltercondtion;
                    grid.RootTable.ApplyFilter(singlefiltercondtion);
                    break;
                }
            }
            grid.Refetch();
            grid.Select();
        }
        public void BindDataSet(GridEX grid, DateTime?periodFrom, DateTime?periodTo)
        {
            dataTable.Clear();

            string whereClause = "";

            if (periodFrom != null || periodTo != null)
            {
                if (periodFrom == null && periodTo != null)
                {
                    whereClause = string.Format("WHERE Okres <= '{0}'", periodFrom == null ? periodTo.GetValueOrDefault().ToString("yyyy-MM-dd") : periodFrom.GetValueOrDefault().ToString("yyyy-MM-dd"));
                }
                else if (periodFrom != null && periodTo == null)
                {
                    whereClause = string.Format("WHERE Okres >= '{0}'", periodFrom == null ? periodTo.GetValueOrDefault().ToString("yyyy-MM-dd") : periodFrom.GetValueOrDefault().ToString("yyyy-MM-dd"));
                }
                else
                {
                    whereClause = string.Format("WHERE Okres BETWEEN '{0}' AND '{1}'", periodFrom.GetValueOrDefault().ToString("yyyy-MM-dd"), periodTo.GetValueOrDefault().ToString("yyyy-MM-dd"));
                }
            }

            SqlCommand cmdSelect = new SqlCommand();

            cmdSelect.Connection           = dbConnection.Connection;
            cmdSelect.CommandType          = CommandType.Text;
            cmdSelect.CommandText          = string.Format("SELECT * FROM [dbo].[vListaRozliczen] {0} ", whereClause);
            cmdSelect.CommandTimeout       = 10000;
            this.dataAdapter.SelectCommand = cmdSelect;

            dataAdapter.Fill(dataTable);
            grid.DataSource = dataTable;
        }
Beispiel #15
0
        private void SetGridMode(bool groupList)
        {
            this.isGridGrouped = groupList;

            if (this.isGridGrouped)
            {
                this.gridExCurrentList   = gridExAgreementsListGrouped;
                this.gridListGroupedRepo = new GridAgreementsListGroupedRepo();
                this.gridListGroupedRepo.BindDataSet(gridExCurrentList);
                this.gridExCurrentList.RootTable.Groups.Clear();
                this.gridExCurrentList.RootTable.Groups.Add(new GridEXGroup(this.gridExCurrentList.RootTable.Columns["IdUmowy"]));
            }
            else
            {
                this.gridExCurrentList = gridExAgreementsList;
                this.gridListRepo      = new GridAgreementsListRepo();
                this.gridListRepo.BindDataSet(gridExCurrentList);
                this.gridExCurrentList.RootTable.Groups.Clear();
            }

            gridExAgreementsList.Visible        = !this.isGridGrouped;
            gridExAgreementsListGrouped.Visible = this.isGridGrouped;
            btnRemoveAgreement.Enabled          = !this.isGridGrouped;

            btnSwitchGridMode.ImageIndex = this.isGridGrouped ? 4 : 3;

            this.ApplyPermissions();
        }
Beispiel #16
0
        protected void CreateXLSFile(string XLSFileName, GridEX gridEX, ExportMode exportMode)
        {
            try
            {
                SaveFileDialog saveFileDialog1 = new SaveFileDialog();
                saveFileDialog1.Filter           = "Excel files (*.xls)|*.xls";
                saveFileDialog1.InitialDirectory = Application.StartupPath + "\\Excels";
                saveFileDialog1.FileName         = XLSFileName;
                saveFileDialog1.FilterIndex      = 2;
                saveFileDialog1.RestoreDirectory = true;
                DialogResult dr = saveFileDialog1.ShowDialog();
                if (dr == DialogResult.Cancel)
                {
                    return;
                }
                if (File.Exists(saveFileDialog1.FileName))
                {
                    File.Delete(saveFileDialog1.FileName);
                }
                GridEXExporter gridEXExporter1 = new GridEXExporter();
                gridEXExporter1.GridEX     = gridEX;
                gridEXExporter1.ExportMode = exportMode;
                gridEXExporter1.Export(saveFileDialog1.OpenFile());

                Process process1 = new Process();
                process1.StartInfo.FileName = saveFileDialog1.FileName;
                process1.Start();
            }
            catch (Exception exp)
            {
                EMessage.Show("خطا در ایجاد فایل اکسل\r\n" + exp.Message, "خطا در ایجاد فایل اکسل", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Beispiel #17
0
        public void BindDataSet(GridEX grid)
        {
            dataTable.Clear();

            SqlCommand cmdSelect = new SqlCommand();

            cmdSelect.Connection      = dbConnection.Connection;
            cmdSelect.CommandType     = CommandType.Text;
            cmdSelect.CommandText     = string.Format("SELECT * FROM [Licencjodawca]");
            dataAdapter.SelectCommand = cmdSelect;

            SqlCommand cmdUpdate = new SqlCommand();

            cmdUpdate.Connection  = dbConnection.Connection;
            cmdUpdate.CommandType = CommandType.Text;
            cmdUpdate.CommandText = string.Format("UPDATE [Licencjodawca] " +
                                                  "SET Imie = @imie, Nazwisko = @nazwisko, Nazwa = @nazwa, OsosbaFizyczna = @osobaFizyczna, DataObowiazywaniaCertyfikatu = @dataObowiazywaniaCertyfikatu, " +
                                                  "PodatekProcent = @podatekProcent, PodatekVAT = @podatekVAT, AdresEmail = @adresEmail, " +
                                                  "EdycjaUzytkownik = @edycjaUzytkownik " +
                                                  "WHERE [id] = @id");
            cmdUpdate.Parameters.Add("@id", SqlDbType.Int, 6, "Id");
            cmdUpdate.Parameters.Add("@imie", SqlDbType.VarChar, 50, "Imie");
            cmdUpdate.Parameters.Add("@nazwisko", SqlDbType.VarChar, 50, "Nazwisko");
            cmdUpdate.Parameters.Add("@nazwa", SqlDbType.VarChar, 50, "Nazwa");
            cmdUpdate.Parameters.Add("@osobaFizyczna", SqlDbType.Bit, 1, "OsosbaFizyczna");
            cmdUpdate.Parameters.Add("@dataObowiazywaniaCertyfikatu", SqlDbType.DateTime, 10, "DataObowiazywaniaCertyfikatu");
            cmdUpdate.Parameters.Add("@podatekProcent", SqlDbType.Decimal, 10, "PodatekProcent");
            cmdUpdate.Parameters.Add("@podatekVAT", SqlDbType.Decimal, 10, "PodatekVAT");
            cmdUpdate.Parameters.Add("@adresEmail", SqlDbType.VarChar, 150, "AdresEmail");
            cmdUpdate.Parameters.Add("@edycjaUzytkownik", SqlDbType.Int, 6).Value = AppUser.Instance.UserId;
            dataAdapter.UpdateCommand = cmdUpdate;

            SqlCommand cmdInsert = new SqlCommand();

            cmdInsert.Connection  = dbConnection.Connection;
            cmdInsert.CommandType = CommandType.Text;
            cmdInsert.CommandText = string.Format("INSERT INTO [Licencjodawca] (Imie, Nazwisko, Nazwa, OsosbaFizyczna, DataObowiazywaniaCertyfikatu, PodatekProcent, PodatekVAT, AdresEmail) " +
                                                  "VALUES (@imie, @nazwisko, @nazwa, @osobaFizyczna, @dataObowiazywaniaCertyfikatu, @podatekProcent, @podatekVAT, @adresEmail)");
            cmdInsert.Parameters.Add("@imie", SqlDbType.VarChar, 50, "Imie");
            cmdInsert.Parameters.Add("@nazwisko", SqlDbType.VarChar, 50, "Nazwisko");
            cmdInsert.Parameters.Add("@nazwa", SqlDbType.VarChar, 50, "Nazwa");
            cmdInsert.Parameters.Add("@osobaFizyczna", SqlDbType.Bit, 1, "OsosbaFizyczna");
            cmdInsert.Parameters.Add("@dataObowiazywaniaCertyfikatu", SqlDbType.DateTime, 10, "DataObowiazywaniaCertyfikatu");
            cmdInsert.Parameters.Add("@podatekProcent", SqlDbType.Decimal, 10, "PodatekProcent");
            cmdInsert.Parameters.Add("@podatekVAT", SqlDbType.Decimal, 10, "PodatekVAT");
            cmdInsert.Parameters.Add("@adresEmail", SqlDbType.VarChar, 150, "AdresEmail");
            cmdInsert.Parameters.Add("@wprowadzenieUzytkownik", SqlDbType.Int, 6).Value = AppUser.Instance.UserId;
            dataAdapter.InsertCommand = cmdInsert;

            SqlCommand cmdDelete = new SqlCommand();

            cmdDelete.Connection  = dbConnection.Connection;
            cmdDelete.CommandType = CommandType.Text;
            cmdDelete.CommandText = string.Format("DELETE FROM [Licencjodawca] WHERE Id = @id");
            cmdDelete.Parameters.Add("@id", SqlDbType.Int, 6, "Id");
            dataAdapter.DeleteCommand = cmdDelete;

            dataAdapter.Fill(dataTable);
            grid.DataSource = dataTable;
        }
Beispiel #18
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="grid"></param>
        /// <param name="row"></param>
        /// <returns></returns>
        public static bool SetRow(this GridEX grid, int row)
        {
            bool success = true;

            try { grid.Row = row; }
            catch { success = false; }
            return(success);
        }
Beispiel #19
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="grid"></param>
 public static void SetPropertiesToShowFilterRow(this GridEX grid)
 {
     grid.DefaultFilterRowComparison = Janus.Windows.GridEX.FilterConditionOperator.Contains;
     grid.DynamicFiltering           = true;
     grid.FilterMode           = Janus.Windows.GridEX.FilterMode.Automatic;
     grid.FilterRowButtonStyle = Janus.Windows.GridEX.FilterRowButtonStyle.None;
     grid.FilterRowUpdateMode  = Janus.Windows.GridEX.FilterRowUpdateMode.WhenValueChanges;
 }
Beispiel #20
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="grid"></param>
 /// <returns></returns>
 public static IEnumerable <T> GetSelectedItems <T>(this GridEX grid) where T : class
 {
     return(grid.SelectedItems
            .Cast <GridEXSelectedItem>()
            .Select(i => i.GetRow())
            .Where(r => r.RowType == RowType.Record)
            .Select(r => r.DataRow as T));
 }
Beispiel #21
0
        public void Reset(GridEX grid, Type type)
        {
            GridEXColumn column;

            Attribute[] attributes;
            ArrayList   columnAttributes  = new ArrayList();
            ArrayList   sortKeyAttributes = new ArrayList();


            grid.RootTable.Columns.Clear();
            grid.RootTable.SortKeys.Clear();
            attributes = Attribute.GetCustomAttributes(type);

            foreach (Attribute attribute in attributes)
            {
                if (attribute is ColumnAttributes)
                {
                    columnAttributes.Add(attribute);
                }
                else if (attribute is SortKeyAttributes)
                {
                    sortKeyAttributes.Add(attribute);
                }
            }


            columnAttributes.Sort();

            foreach (Attribute columnAttribute in columnAttributes)
            {
                if (columnAttribute is ColumnAttributes)
                {
                    column = grid.RootTable.Columns.Add(((ColumnAttributes)columnAttribute).Name,
                                                        GetColumnType(type.GetProperty(((ColumnAttributes)columnAttribute).Name)));

                    column.Visible      = ((ColumnAttributes)columnAttribute).Visible;
                    column.Caption      = ((ColumnAttributes)columnAttribute).Caption;
                    column.Width        = ((ColumnAttributes)columnAttribute).Width;
                    column.Position     = ((ColumnAttributes)columnAttribute).Index;
                    column.FormatString = ((ColumnAttributes)columnAttribute).Format;
                    if (column.ColumnType == ColumnType.BoundImage)
                    {
                        column.BoundImageSize = new Size(64, 64);
                        column.AllowSort      = column.AllowSize = false;
                        column.TextAlignment  = TextAlignment.Center;
                    }
                }
            }
            foreach (Attribute columnAttribute in sortKeyAttributes)
            {
                if (columnAttribute is SortKeyAttributes)
                {
                    column = grid.RootTable.Columns[((SortKeyAttributes)columnAttribute).Name];
                    SortOrder sortOrder = (((SortKeyAttributes)columnAttribute).Ascending) ? SortOrder.Ascending : SortOrder.Descending;
                    grid.RootTable.SortKeys.Add(new GridEXSortKey(column, sortOrder));
                }
            }
        }
Beispiel #22
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="grid"></param>
        public GridEXDragDropHandler(GridEX grid)
        {
            mGrid     = grid;
            mDisposed = false;

            mGrid.MouseDown += new MouseEventHandler(mGrid_MouseDown);
            mGrid.MouseMove += new MouseEventHandler(mGrid_MouseMove);
            mGrid.MouseUp   += new MouseEventHandler(mGrid_MouseUp);
        }
Beispiel #23
0
 protected void LoadGridLayout(GridEX grid)
 {
     SetBusy();
     if (businessLogic.PersistentType.FullName != "Entities.Repeticiones")
     {
         FormUtils.Instance.GridLayoutManager.Load(grid, new GridLayoutKey(grid, businessLogic.PersistentType));
     }
     ClearBusy();
 }
Beispiel #24
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="grid"></param>
 public static void SetPropertiesToHideSelection(this GridEX grid)
 {
     grid.SelectedFormatStyle.BackColor         = Color.Empty;
     grid.SelectedFormatStyle.ForeColor         = Color.Empty;
     grid.SelectedInactiveFormatStyle.BackColor = Color.Empty;
     grid.SelectedInactiveFormatStyle.ForeColor = Color.Empty;
     grid.GridLines  = Janus.Windows.GridEX.GridLines.None;
     grid.FocusStyle = Janus.Windows.GridEX.FocusStyle.None;
 }
Beispiel #25
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.grdData             = new Janus.Windows.GridEX.GridEX();
     this.mnuGrid             = new System.Windows.Forms.ContextMenu();
     this.mnuGrid_ResetLayout = new System.Windows.Forms.MenuItem();
     ((System.ComponentModel.ISupportInitialize)(this.grdData)).BeginInit();
     this.SuspendLayout();
     //
     // grdData
     //
     this.grdData.AllowAddNew         = Janus.Windows.GridEX.InheritableBoolean.True;
     this.grdData.AllowDelete         = Janus.Windows.GridEX.InheritableBoolean.True;
     this.grdData.AlternatingColors   = true;
     this.grdData.ContextMenu         = this.mnuGrid;
     this.grdData.DelayEditionOnClick = true;
     this.grdData.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.grdData.GridLineStyle     = Janus.Windows.GridEX.GridLineStyle.Solid;
     this.grdData.GroupByBoxVisible = false;
     this.grdData.Location          = new System.Drawing.Point(4, 4);
     this.grdData.Name              = "grdData";
     this.grdData.Size              = new System.Drawing.Size(284, 265);
     this.grdData.TabIndex          = 0;
     this.grdData.TabKeyBehavior    = Janus.Windows.GridEX.TabKeyBehavior.ControlNavigation;
     this.grdData.VisualStyle       = Janus.Windows.GridEX.VisualStyle.Office2003;
     this.grdData.DeletingRecords  += new System.ComponentModel.CancelEventHandler(this.grdData_DeletingRecords);
     this.grdData.UpdatingRecord   += new System.ComponentModel.CancelEventHandler(this.grdData_UpdatingRecord);
     this.grdData.GetNewRow        += new Janus.Windows.GridEX.GetNewRowEventHandler(this.grdData_GetNewRow);
     this.grdData.RecordUpdated    += new System.EventHandler(this.grdData_RecordUpdated);
     this.grdData.RecordAdded      += new System.EventHandler(this.grdData_RecordAdded);
     //
     // mnuGrid
     //
     this.mnuGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuGrid_ResetLayout
     });
     //
     // mnuGrid_ResetLayout
     //
     this.mnuGrid_ResetLayout.Index  = 0;
     this.mnuGrid_ResetLayout.Text   = "Reset Layout";
     this.mnuGrid_ResetLayout.Click += new System.EventHandler(this.mnuGrid_ResetLayout_Click);
     //
     // GridOnLineForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(292, 273);
     this.Controls.Add(this.grdData);
     this.Name          = "GridOnLineForm";
     this.Padding       = new System.Windows.Forms.Padding(4);
     this.ShowInTaskbar = false;
     this.Text          = "GridOnLineForm";
     this.Closed       += new System.EventHandler(this.GridOnLineForm_Closed);
     this.Load         += new System.EventHandler(this.GridOnLineForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.grdData)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #26
0
 public void Load(GridEX grid, IGridLayoutKey key)
 {
     try {
         Stream stream = new FileStream(LayoutFileName(key), FileMode.Open);
         grid.LoadLayoutFile(stream);
         stream.Close();
     }
     catch (FileNotFoundException) {
     }
 }
Beispiel #27
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="grid"></param>
        /// <returns></returns>
        public static bool ConfirmDelete(this GridEX grid)
        {
            string singular = "Are you sure you want to delete this item?";
            string plural   = "Are you sure you want to delete these items?";

            var result = MessageBox.Show(grid.ParentForm, grid.SelectedItems.Count == 1 ?
                                         singular : plural, "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            return(result == System.Windows.Forms.DialogResult.Yes);
        }
Beispiel #28
0
        public static void GridFormatConditionSetting(GridEX jg, GridEXColumn gcName, object gcValue, ConditionOperator co)
        {
            GridEXFormatCondition fc = new GridEXFormatCondition();

            fc.Column                = gcName;
            fc.ConditionOperator     = co;
            fc.Value1                = gcValue;
            fc.FormatStyle.BackColor = Color.GreenYellow;
            jg.RootTable.FormatConditions.Add(fc);
        }
Beispiel #29
0
        //Fin German 20110106 - Tarea 0000148

        //German 20090407

        public static bool ContainsColumn(GridEX grid, string ColumnName)
        {
            foreach (GridEXColumn col in grid.RootTable.Columns)
            {
                if (col.Key.ToUpper().Equals(ColumnName.ToUpper()))
                {
                    return(true);
                }
            }
            return(false);
        }
 private void HideCotCuaGrid(int TuThang, int DenThang, GridEX gridCuocGoiMGThang)
 {
     for (int i = 1; i <= 12; i++)
     {
         gridCuocGoiMGThang.RootTable.Columns[i + 4].Visible = false;
     }
     for (int i = TuThang; i <= DenThang; i++)
     {
         gridCuocGoiMGThang.RootTable.Columns[i + 4].Visible = true;
     }
 }
Beispiel #31
0
		public DialogResult ShowDialog(GridEX grid, Form parent)
		{

			this.FilterEditor1.SourceControl = grid;
			this.ShowDialog(parent);
			if (this.DialogResult == System.Windows.Forms.DialogResult.OK)
			{
				grid.RootTable.FilterCondition = (IFilterCondition)this.FilterEditor1.FilterCondition;
			}
			return this.DialogResult;
		}
Beispiel #32
0
        private void InsertInfo(string Key, ref GridEX grid, bool DontInsertNull)
        {
            Cursor = Cursors.WaitCursor;
            foreach (Control c in Controls)
            {
                c.Enabled = false;
            }

            InsertInfoRun(Key, grid, DontInsertNull);

            foreach (Control c in Controls)
            {
                c.Enabled = true;
            }

            grid.FirstRow = 0;

            Cursor = Cursors.Default;
        }
Beispiel #33
0
        private void deleteRecord(string module, string column, GridEXRow row, GridEX gridEX)
        {
            string value = row.Cells[column].Text;
            DataRow[] mDataRow = ((DataTable)gridEX.DataSource).Select(string.Format("{0} = '{1}'", column, value));
            if (mDataRow.Length > 0)
            {
                DataRow dr = mDataRow[0];
                if (dr.RowState == DataRowState.Added)
                {
                    switch (module)
                    {
                        case TAB_KEY_AREA:
                            dtArea.Rows.Remove(dr);
                            break;

                        case TAB_KEY_CATEGORY:
                            dtCategory.Rows.Remove(dr);
                            break;

                        case TAB_KEY_STORE:
                            dtStore.Rows.Remove(dr);
                            break;

                        case TAB_KEY_ITEM:
                            dtItem.Rows.Remove(dr);
                            break;

                        case TAB_KEY_ITEM_DESC:
                            dtItemDesc.Rows.Remove(dr);
                            break;

                        default:
                            return;
                    }
                }
                else
                {
                    dr["REC_DELETED"] = 1;
                }

            }
        }
 private GridEXColumn getGridExColumn(GridEX gridEx, string colName)
 {
     return gridEx.RootTable.Columns[colName];
 }
Beispiel #35
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TransactionLog));
     this.MainGrid = new GridEX();
     ((ISupportInitialize)this.MainGrid).BeginInit();
     base.SuspendLayout();
     this.MainGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.MainGrid.Location = new System.Drawing.Point(0, 0);
     this.MainGrid.Name = "MainGrid";
     this.MainGrid.Size = new System.Drawing.Size(584, 167);
     this.MainGrid.TabIndex = 0;
     base.ClientSize = new System.Drawing.Size(584, 167);
     base.Controls.Add(this.MainGrid);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "TransactionLog";
     this.Text = "Transaction Log";
     ((ISupportInitialize)this.MainGrid).EndInit();
     base.ResumeLayout(false);
 }
Beispiel #36
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Portfolio));
     this.MainGrid = new GridEX();
     ((ISupportInitialize)this.MainGrid).BeginInit();
     base.SuspendLayout();
     this.MainGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.MainGrid.Location = new System.Drawing.Point(0, 0);
     this.MainGrid.Name = "MainGrid";
     this.MainGrid.Size = new System.Drawing.Size(584, 167);
     this.MainGrid.TabIndex = 1;
     this.MainGrid.RowDrag += new RowDragEventHandler(this.MainGrid_RowDrag);
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(584, 167);
     base.Controls.Add(this.MainGrid);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "Portfolio";
     this.Text = "Portfolio";
     ((ISupportInitialize)this.MainGrid).EndInit();
     base.ResumeLayout(false);
 }
Beispiel #37
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TradeBlotter));
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.OpenOrdersPage = new System.Windows.Forms.TabPage();
     this.LiveOrdersGrid = new GridEX();
     this.ArchivedOrdersPage = new System.Windows.Forms.TabPage();
     this.HistoryGrid = new GridEX();
     this.TendersPage = new System.Windows.Forms.TabPage();
     this.TendersGrid = new GridEX();
     this.EndowmentsPage = new System.Windows.Forms.TabPage();
     this.EndowmentsGrid = new GridEX();
     this.CancelAllLabel = new System.Windows.Forms.LinkLabel();
     this.tabControl1.SuspendLayout();
     this.OpenOrdersPage.SuspendLayout();
     ((ISupportInitialize)this.LiveOrdersGrid).BeginInit();
     this.ArchivedOrdersPage.SuspendLayout();
     ((ISupportInitialize)this.HistoryGrid).BeginInit();
     this.TendersPage.SuspendLayout();
     ((ISupportInitialize)this.TendersGrid).BeginInit();
     this.EndowmentsPage.SuspendLayout();
     ((ISupportInitialize)this.EndowmentsGrid).BeginInit();
     base.SuspendLayout();
     this.tabControl1.Controls.Add(this.OpenOrdersPage);
     this.tabControl1.Controls.Add(this.ArchivedOrdersPage);
     this.tabControl1.Controls.Add(this.TendersPage);
     this.tabControl1.Controls.Add(this.EndowmentsPage);
     this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location = new System.Drawing.Point(0, 0);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(584, 167);
     this.tabControl1.TabIndex = 0;
     this.OpenOrdersPage.Controls.Add(this.LiveOrdersGrid);
     this.OpenOrdersPage.Location = new System.Drawing.Point(4, 22);
     this.OpenOrdersPage.Name = "OpenOrdersPage";
     this.OpenOrdersPage.Size = new System.Drawing.Size(576, 141);
     this.OpenOrdersPage.TabIndex = 0;
     this.OpenOrdersPage.Text = "Live/Partial";
     this.OpenOrdersPage.UseVisualStyleBackColor = true;
     this.LiveOrdersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.LiveOrdersGrid.Location = new System.Drawing.Point(0, 0);
     this.LiveOrdersGrid.Name = "LiveOrdersGrid";
     this.LiveOrdersGrid.Size = new System.Drawing.Size(576, 141);
     this.LiveOrdersGrid.TabIndex = 2;
     this.ArchivedOrdersPage.Controls.Add(this.HistoryGrid);
     this.ArchivedOrdersPage.Location = new System.Drawing.Point(4, 22);
     this.ArchivedOrdersPage.Name = "ArchivedOrdersPage";
     this.ArchivedOrdersPage.Size = new System.Drawing.Size(576, 141);
     this.ArchivedOrdersPage.TabIndex = 1;
     this.ArchivedOrdersPage.Text = "Filled/Cancelled";
     this.ArchivedOrdersPage.UseVisualStyleBackColor = true;
     this.HistoryGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.HistoryGrid.Location = new System.Drawing.Point(0, 0);
     this.HistoryGrid.Name = "HistoryGrid";
     this.HistoryGrid.Size = new System.Drawing.Size(576, 141);
     this.HistoryGrid.TabIndex = 1;
     this.TendersPage.Controls.Add(this.TendersGrid);
     this.TendersPage.Location = new System.Drawing.Point(4, 22);
     this.TendersPage.Name = "TendersPage";
     this.TendersPage.Size = new System.Drawing.Size(576, 141);
     this.TendersPage.TabIndex = 2;
     this.TendersPage.Text = "Tenders";
     this.TendersPage.UseVisualStyleBackColor = true;
     this.TendersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.TendersGrid.Location = new System.Drawing.Point(0, 0);
     this.TendersGrid.Name = "TendersGrid";
     this.TendersGrid.Size = new System.Drawing.Size(576, 141);
     this.TendersGrid.TabIndex = 2;
     this.EndowmentsPage.Controls.Add(this.EndowmentsGrid);
     this.EndowmentsPage.Location = new System.Drawing.Point(4, 22);
     this.EndowmentsPage.Name = "EndowmentsPage";
     this.EndowmentsPage.Size = new System.Drawing.Size(576, 141);
     this.EndowmentsPage.TabIndex = 3;
     this.EndowmentsPage.Text = "Endowments";
     this.EndowmentsPage.UseVisualStyleBackColor = true;
     this.EndowmentsGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.EndowmentsGrid.Location = new System.Drawing.Point(0, 0);
     this.EndowmentsGrid.Name = "EndowmentsGrid";
     this.EndowmentsGrid.Size = new System.Drawing.Size(576, 141);
     this.EndowmentsGrid.TabIndex = 2;
     this.CancelAllLabel.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.CancelAllLabel.AutoSize = true;
     this.CancelAllLabel.Location = new System.Drawing.Point(528, 2);
     this.CancelAllLabel.Name = "CancelAllLabel";
     this.CancelAllLabel.Size = new System.Drawing.Size(53, 13);
     this.CancelAllLabel.TabIndex = 1;
     this.CancelAllLabel.TabStop = true;
     this.CancelAllLabel.Text = "Cancel All";
     this.CancelAllLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.CancelAllLabel_LinkClicked);
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(584, 167);
     base.Controls.Add(this.CancelAllLabel);
     base.Controls.Add(this.tabControl1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "TradeBlotter";
     this.Text = "Trade Blotter";
     this.tabControl1.ResumeLayout(false);
     this.OpenOrdersPage.ResumeLayout(false);
     ((ISupportInitialize)this.LiveOrdersGrid).EndInit();
     this.ArchivedOrdersPage.ResumeLayout(false);
     ((ISupportInitialize)this.HistoryGrid).EndInit();
     this.TendersPage.ResumeLayout(false);
     ((ISupportInitialize)this.TendersGrid).EndInit();
     this.EndowmentsPage.ResumeLayout(false);
     ((ISupportInitialize)this.EndowmentsGrid).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Beispiel #38
0
 private void RemoveNullValue(ref GridEX grid)
 {
     foreach (GridEXRow row in grid.GetDataRows())
     {
         foreach (GridEXCell cell in row.Cells)
         {
             if ((String)(cell.Value) == "No Information available")
             {
                 row.Delete();
                 continue;
             }
         }
     }
 }
Beispiel #39
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(BookTrader));
     this.MainToolStrip = new System.Windows.Forms.ToolStrip();
     this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
     this.TickerComboBox = new System.Windows.Forms.ToolStripComboBox();
     this.SpringLabel = new System.Windows.Forms.ToolStripLabel();
     this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
     this.ShortcutTradesButton = new System.Windows.Forms.ToolStripButton();
     this.panel1 = new System.Windows.Forms.Panel();
     this.AskGrid = new GridEX();
     this.BidGrid = new GridEX();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
     this.label2 = new System.Windows.Forms.Label();
     this.LastLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.PositionLabel = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.VWAPLabel = new System.Windows.Forms.Label();
     this.MainToolStrip.SuspendLayout();
     this.panel1.SuspendLayout();
     ((ISupportInitialize)this.AskGrid).BeginInit();
     ((ISupportInitialize)this.BidGrid).BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     this.flowLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.MainToolStrip.CanOverflow = false;
     this.MainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[]
     {
         this.toolStripLabel1,
         this.TickerComboBox,
         this.SpringLabel,
         this.toolStripLabel2,
         this.ShortcutTradesButton
     });
     this.MainToolStrip.Location = new System.Drawing.Point(0, 0);
     this.MainToolStrip.Name = "MainToolStrip";
     this.MainToolStrip.Size = new System.Drawing.Size(384, 25);
     this.MainToolStrip.TabIndex = 1;
     this.MainToolStrip.Text = "toolStrip1";
     this.MainToolStrip.Layout += new System.Windows.Forms.LayoutEventHandler(this.MainToolStrip_Layout);
     this.toolStripLabel1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(45, 22);
     this.toolStripLabel1.Text = "Ticker:";
     this.TickerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TickerComboBox.DropDownWidth = 100;
     this.TickerComboBox.Name = "TickerComboBox";
     this.TickerComboBox.Size = new System.Drawing.Size(121, 25);
     this.SpringLabel.AutoSize = false;
     this.SpringLabel.Name = "SpringLabel";
     this.SpringLabel.Size = new System.Drawing.Size(10, 22);
     this.toolStripLabel2.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.toolStripLabel2.Image = Resources.lightning;
     this.toolStripLabel2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.toolStripLabel2.Name = "toolStripLabel2";
     this.toolStripLabel2.Size = new System.Drawing.Size(26, 22);
     this.toolStripLabel2.Text = ":";
     this.toolStripLabel2.ToolTipText = "Shortcut Trades";
     this.ShortcutTradesButton.CheckOnClick = true;
     this.ShortcutTradesButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.ShortcutTradesButton.Image = Resources.lightning;
     this.ShortcutTradesButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ShortcutTradesButton.Name = "ShortcutTradesButton";
     this.ShortcutTradesButton.Size = new System.Drawing.Size(32, 22);
     this.ShortcutTradesButton.Text = "OFF";
     this.ShortcutTradesButton.CheckedChanged += new System.EventHandler(this.ShortcutTradesButton_CheckedChanged);
     this.panel1.Controls.Add(this.AskGrid);
     this.panel1.Controls.Add(this.BidGrid);
     this.panel1.Controls.Add(this.tableLayoutPanel1);
     this.panel1.Controls.Add(this.MainToolStrip);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(384, 462);
     this.panel1.TabIndex = 1;
     this.AskGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.AskGrid.Location = new System.Drawing.Point(195, 44);
     this.AskGrid.Name = "AskGrid";
     this.AskGrid.Size = new System.Drawing.Size(189, 418);
     this.AskGrid.TabIndex = 3;
     this.AskGrid.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Grid_MouseDown);
     this.BidGrid.Dock = System.Windows.Forms.DockStyle.Left;
     this.BidGrid.Location = new System.Drawing.Point(0, 44);
     this.BidGrid.Name = "BidGrid";
     this.BidGrid.Size = new System.Drawing.Size(195, 418);
     this.BidGrid.TabIndex = 2;
     this.BidGrid.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Grid_MouseDown);
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 0, 0);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 25);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 19f));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(384, 19);
     this.tableLayoutPanel1.TabIndex = 4;
     this.flowLayoutPanel1.Anchor = System.Windows.Forms.AnchorStyles.None;
     this.flowLayoutPanel1.AutoSize = true;
     this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.flowLayoutPanel1.Controls.Add(this.label2);
     this.flowLayoutPanel1.Controls.Add(this.LastLabel);
     this.flowLayoutPanel1.Controls.Add(this.label1);
     this.flowLayoutPanel1.Controls.Add(this.PositionLabel);
     this.flowLayoutPanel1.Controls.Add(this.label3);
     this.flowLayoutPanel1.Controls.Add(this.VWAPLabel);
     this.flowLayoutPanel1.Location = new System.Drawing.Point(89, 3);
     this.flowLayoutPanel1.Name = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size = new System.Drawing.Size(205, 13);
     this.flowLayoutPanel1.TabIndex = 0;
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label2.Location = new System.Drawing.Point(3, 0);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(34, 13);
     this.label2.TabIndex = 4;
     this.label2.Text = "Last:";
     this.LastLabel.AutoSize = true;
     this.LastLabel.Location = new System.Drawing.Point(43, 0);
     this.LastLabel.Name = "LastLabel";
     this.LastLabel.Size = new System.Drawing.Size(15, 13);
     this.LastLabel.TabIndex = 5;
     this.LastLabel.Text = "--";
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label1.Location = new System.Drawing.Point(64, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(55, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Position:";
     this.PositionLabel.AutoSize = true;
     this.PositionLabel.Location = new System.Drawing.Point(125, 0);
     this.PositionLabel.Name = "PositionLabel";
     this.PositionLabel.Size = new System.Drawing.Size(15, 13);
     this.PositionLabel.TabIndex = 1;
     this.PositionLabel.Text = "--";
     this.label3.AutoSize = true;
     this.label3.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label3.Location = new System.Drawing.Point(146, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(35, 13);
     this.label3.TabIndex = 2;
     this.label3.Text = "Cost:";
     this.VWAPLabel.AutoSize = true;
     this.VWAPLabel.Location = new System.Drawing.Point(187, 0);
     this.VWAPLabel.Name = "VWAPLabel";
     this.VWAPLabel.Size = new System.Drawing.Size(15, 13);
     this.VWAPLabel.TabIndex = 3;
     this.VWAPLabel.Text = "--";
     this.AllowDrop = true;
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(384, 462);
     base.Controls.Add(this.panel1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.KeyPreview = true;
     base.Name = "BookTrader";
     this.Text = "Book Trader";
     base.DragDrop += new System.Windows.Forms.DragEventHandler(this.BookTrader_DragDrop);
     base.DragOver += new System.Windows.Forms.DragEventHandler(this.BookTrader_DragOver);
     base.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Grid_KeyPress);
     this.MainToolStrip.ResumeLayout(false);
     this.MainToolStrip.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((ISupportInitialize)this.AskGrid).EndInit();
     ((ISupportInitialize)this.BidGrid).EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
 }
Beispiel #40
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(News));
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.NewsGrid = new GridEX();
     this.panel1 = new System.Windows.Forms.Panel();
     this.BodyBrowser = new System.Windows.Forms.WebBrowser();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
     this.label5 = new System.Windows.Forms.Label();
     this.TimeLabel = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.HeadlineLabel = new System.Windows.Forms.Label();
     this.TickerLabel = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     ((ISupportInitialize)this.splitContainer1).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((ISupportInitialize)this.NewsGrid).BeginInit();
     this.panel1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.flowLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this.splitContainer1.Panel1.Controls.Add(this.NewsGrid);
     this.splitContainer1.Panel2.Controls.Add(this.panel1);
     this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1);
     this.splitContainer1.Size = new System.Drawing.Size(455, 262);
     this.splitContainer1.SplitterDistance = 100;
     this.splitContainer1.TabIndex = 0;
     this.NewsGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.NewsGrid.Location = new System.Drawing.Point(0, 0);
     this.NewsGrid.Name = "NewsGrid";
     this.NewsGrid.Size = new System.Drawing.Size(455, 100);
     this.NewsGrid.TabIndex = 0;
     this.panel1.Controls.Add(this.BodyBrowser);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 32);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(455, 126);
     this.panel1.TabIndex = 1;
     this.BodyBrowser.AllowWebBrowserDrop = false;
     this.BodyBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
     this.BodyBrowser.IsWebBrowserContextMenuEnabled = false;
     this.BodyBrowser.Location = new System.Drawing.Point(0, 0);
     this.BodyBrowser.MinimumSize = new System.Drawing.Size(20, 20);
     this.BodyBrowser.Name = "BodyBrowser";
     this.BodyBrowser.ScriptErrorsSuppressed = true;
     this.BodyBrowser.Size = new System.Drawing.Size(455, 126);
     this.BodyBrowser.TabIndex = 0;
     this.BodyBrowser.WebBrowserShortcutsEnabled = false;
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 2, 0);
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.HeadlineLabel, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.TickerLabel, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 0);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(3);
     this.tableLayoutPanel1.RowCount = 2;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20f));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(455, 32);
     this.tableLayoutPanel1.TabIndex = 0;
     this.flowLayoutPanel1.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.flowLayoutPanel1.AutoSize = true;
     this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.flowLayoutPanel1.Controls.Add(this.label5);
     this.flowLayoutPanel1.Controls.Add(this.TimeLabel);
     this.flowLayoutPanel1.Location = new System.Drawing.Point(380, 3);
     this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
     this.flowLayoutPanel1.Name = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size = new System.Drawing.Size(72, 13);
     this.flowLayoutPanel1.TabIndex = 2;
     this.label5.AutoSize = true;
     this.label5.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label5.Location = new System.Drawing.Point(3, 0);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(38, 13);
     this.label5.TabIndex = 2;
     this.label5.Text = "Time:";
     this.TimeLabel.AutoSize = true;
     this.TimeLabel.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     this.TimeLabel.Location = new System.Drawing.Point(47, 0);
     this.TimeLabel.Name = "TimeLabel";
     this.TimeLabel.Size = new System.Drawing.Size(22, 13);
     this.TimeLabel.TabIndex = 2;
     this.TimeLabel.Text = "???";
     this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label4.Location = new System.Drawing.Point(6, 16);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(59, 13);
     this.label4.TabIndex = 3;
     this.label4.Text = "Headline:";
     this.HeadlineLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.HeadlineLabel.AutoSize = true;
     this.tableLayoutPanel1.SetColumnSpan(this.HeadlineLabel, 2);
     this.HeadlineLabel.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     this.HeadlineLabel.Location = new System.Drawing.Point(71, 16);
     this.HeadlineLabel.Name = "HeadlineLabel";
     this.HeadlineLabel.Size = new System.Drawing.Size(22, 13);
     this.HeadlineLabel.TabIndex = 2;
     this.HeadlineLabel.Text = "???";
     this.TickerLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.TickerLabel.AutoSize = true;
     this.TickerLabel.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     this.TickerLabel.Location = new System.Drawing.Point(71, 3);
     this.TickerLabel.Name = "TickerLabel";
     this.TickerLabel.Size = new System.Drawing.Size(22, 13);
     this.TickerLabel.TabIndex = 0;
     this.TickerLabel.Text = "???";
     this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label2.Location = new System.Drawing.Point(6, 3);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(45, 13);
     this.label2.TabIndex = 1;
     this.label2.Text = "Ticker:";
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(455, 262);
     base.Controls.Add(this.splitContainer1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "News";
     this.Text = "News";
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     ((ISupportInitialize)this.splitContainer1).EndInit();
     this.splitContainer1.ResumeLayout(false);
     ((ISupportInitialize)this.NewsGrid).EndInit();
     this.panel1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
 }
Beispiel #41
0
 private void refreshGrid(GridEX gridEx, DataTable dt)
 {
     gridEx.DataSource = dt;
 }
Beispiel #42
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TimeSales));
     this.MainToolStrip = new System.Windows.Forms.ToolStrip();
     this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
     this.TickerComboBox = new System.Windows.Forms.ToolStripComboBox();
     this.MainGrid = new GridEX();
     this.MainToolStrip.SuspendLayout();
     ((ISupportInitialize)this.MainGrid).BeginInit();
     base.SuspendLayout();
     this.MainToolStrip.CanOverflow = false;
     this.MainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[]
     {
         this.toolStripLabel1,
         this.TickerComboBox
     });
     this.MainToolStrip.Location = new System.Drawing.Point(0, 0);
     this.MainToolStrip.Name = "MainToolStrip";
     this.MainToolStrip.Size = new System.Drawing.Size(584, 25);
     this.MainToolStrip.TabIndex = 2;
     this.MainToolStrip.Text = "toolStrip1";
     this.toolStripLabel1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(45, 22);
     this.toolStripLabel1.Text = "Ticker:";
     this.TickerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TickerComboBox.DropDownWidth = 100;
     this.TickerComboBox.Name = "TickerComboBox";
     this.TickerComboBox.Size = new System.Drawing.Size(121, 25);
     this.MainGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.MainGrid.FilterMode = FilterMode.Automatic;
     this.MainGrid.Location = new System.Drawing.Point(0, 25);
     this.MainGrid.Name = "MainGrid";
     this.MainGrid.Size = new System.Drawing.Size(584, 142);
     this.MainGrid.TabIndex = 3;
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(584, 167);
     base.Controls.Add(this.MainGrid);
     base.Controls.Add(this.MainToolStrip);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "TimeSales";
     this.Text = "Time & Sales";
     this.MainToolStrip.ResumeLayout(false);
     this.MainToolStrip.PerformLayout();
     ((ISupportInitialize)this.MainGrid).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Beispiel #43
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Assets));
     this.ContainersGrid = new GridEX();
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.TransportersGrid = new GridEX();
     this.tabPage4 = new System.Windows.Forms.TabPage();
     this.ConvertersGrid = new GridEX();
     this.tabPage3 = new System.Windows.Forms.TabPage();
     this.ProducersGrid = new GridEX();
     ((ISupportInitialize)this.ContainersGrid).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     ((ISupportInitialize)this.TransportersGrid).BeginInit();
     this.tabPage4.SuspendLayout();
     ((ISupportInitialize)this.ConvertersGrid).BeginInit();
     this.tabPage3.SuspendLayout();
     ((ISupportInitialize)this.ProducersGrid).BeginInit();
     base.SuspendLayout();
     this.ContainersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ContainersGrid.Location = new System.Drawing.Point(0, 0);
     this.ContainersGrid.Name = "ContainersGrid";
     this.ContainersGrid.Size = new System.Drawing.Size(576, 141);
     this.ContainersGrid.TabIndex = 0;
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Controls.Add(this.tabPage4);
     this.tabControl1.Controls.Add(this.tabPage3);
     this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location = new System.Drawing.Point(0, 0);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(584, 167);
     this.tabControl1.TabIndex = 1;
     this.tabPage1.Controls.Add(this.ContainersGrid);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Size = new System.Drawing.Size(576, 141);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Storage";
     this.tabPage1.UseVisualStyleBackColor = true;
     this.tabPage2.Controls.Add(this.TransportersGrid);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Size = new System.Drawing.Size(576, 141);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text = "Transport";
     this.tabPage2.UseVisualStyleBackColor = true;
     this.TransportersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.TransportersGrid.Location = new System.Drawing.Point(0, 0);
     this.TransportersGrid.Name = "TransportersGrid";
     this.TransportersGrid.Size = new System.Drawing.Size(576, 141);
     this.TransportersGrid.TabIndex = 1;
     this.tabPage4.Controls.Add(this.ConvertersGrid);
     this.tabPage4.Location = new System.Drawing.Point(4, 22);
     this.tabPage4.Name = "tabPage4";
     this.tabPage4.Size = new System.Drawing.Size(576, 141);
     this.tabPage4.TabIndex = 3;
     this.tabPage4.Text = "Converters";
     this.tabPage4.UseVisualStyleBackColor = true;
     this.ConvertersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ConvertersGrid.Location = new System.Drawing.Point(0, 0);
     this.ConvertersGrid.Name = "ConvertersGrid";
     this.ConvertersGrid.Size = new System.Drawing.Size(576, 141);
     this.ConvertersGrid.TabIndex = 2;
     this.tabPage3.Controls.Add(this.ProducersGrid);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name = "tabPage3";
     this.tabPage3.Size = new System.Drawing.Size(576, 141);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text = "Producers";
     this.tabPage3.UseVisualStyleBackColor = true;
     this.ProducersGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ProducersGrid.Location = new System.Drawing.Point(0, 0);
     this.ProducersGrid.Name = "ProducersGrid";
     this.ProducersGrid.Size = new System.Drawing.Size(576, 141);
     this.ProducersGrid.TabIndex = 2;
     base.ClientSize = new System.Drawing.Size(584, 167);
     base.Controls.Add(this.tabControl1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "Assets";
     this.Text = "Assets";
     ((ISupportInitialize)this.ContainersGrid).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     ((ISupportInitialize)this.TransportersGrid).EndInit();
     this.tabPage4.ResumeLayout(false);
     ((ISupportInitialize)this.ConvertersGrid).EndInit();
     this.tabPage3.ResumeLayout(false);
     ((ISupportInitialize)this.ProducersGrid).EndInit();
     base.ResumeLayout(false);
 }
        /// <summary>
        /// HAM THUC HIEN TIM KIEM BAT SU KIEN TIM KIEM
        /// </summary>
        void Search()
        {
            try
            {

                dsTable = SPs.DmucLaydanhmucDichvuclsChitiet(1, hanchequyendanhmuc ? Utility.Int32Dbnull(txtLoaiDichvu.MyID, 0) : -1).GetDataSet().Tables[0];

                Utility.SetDataSourceForDataGridEx(grdServiceDetail, dsTable, true, true, "id_cha<=0", "stt_hthi_loaidvu,stt_hthi_dichvu,stt_hthi,ten_chitietdichvu");
                _currentGRd = grdServiceDetail;
                ModifyCommand();
            }
            catch (Exception)
            {

               ModifyCommand();
            }
        }
 void grdServiceDetail_GotFocus(object sender, EventArgs e)
 {
     _currentGRd = grdServiceDetail;
 }
 void grdChitiet_GotFocus(object sender, EventArgs e)
 {
     _currentGRd = grdChitiet;
 }
        string getCheckedvalue(GridEX grd, string fieldName)
        {
            string reval = "";
            try
            {
                foreach (Janus.Windows.GridEX.GridEXRow gridExRow in grd.GetCheckedRows())
                {
                    reval += Utility.sDbnull(gridExRow.Cells[fieldName].Value, "") + ",";
                }
                if (reval != "") reval= reval.Substring(0, reval.Length - 1);
                return reval;
            }
            catch (Exception)
            {

                return "";
            }
        }
 private string GetIdString(DataTable dt, GridEX grd, string colName, string errResult)
 {
     try
     {
         string vResult = errResult;
         int count = 0;
         foreach (GridEXRow grdRow in grd.GetCheckedRows())
         {
             if (grdRow.IsChecked)
             {
                 vResult += "," + grdRow.Cells[colName].Value;
                 count += 1;
             }
         }
         if (count == PreloadedLists.TestType.Rows.Count) vResult = errResult;
         return vResult;
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
         return "-1";
     }
 }
Beispiel #49
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TraderInfo));
     this.TradingLimitsGrid = new GridEX();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.NLVLabel = new System.Windows.Forms.Label();
     this.NameLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.TraderIDLabel = new System.Windows.Forms.Label();
     ((ISupportInitialize)this.TradingLimitsGrid).BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.TradingLimitsGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.TradingLimitsGrid.Location = new System.Drawing.Point(10, 63);
     this.TradingLimitsGrid.Name = "TradingLimitsGrid";
     this.TradingLimitsGrid.Size = new System.Drawing.Size(214, 94);
     this.TradingLimitsGrid.TabIndex = 1;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.NLVLabel, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.NameLabel, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.TraderIDLabel, 1, 0);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(10, 10);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 4;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 5f));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20f));
     this.tableLayoutPanel1.Size = new System.Drawing.Size(214, 53);
     this.tableLayoutPanel1.TabIndex = 0;
     this.NLVLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.NLVLabel.AutoSize = true;
     this.NLVLabel.Location = new System.Drawing.Point(73, 33);
     this.NLVLabel.Name = "NLVLabel";
     this.NLVLabel.Size = new System.Drawing.Size(22, 13);
     this.NLVLabel.TabIndex = 7;
     this.NLVLabel.Text = "???";
     this.NameLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.NameLabel.AutoSize = true;
     this.NameLabel.Location = new System.Drawing.Point(73, 17);
     this.NameLabel.Name = "NameLabel";
     this.NameLabel.Size = new System.Drawing.Size(22, 13);
     this.NameLabel.TabIndex = 5;
     this.NameLabel.Text = "???";
     this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label1.Location = new System.Drawing.Point(3, 1);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(64, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Trader ID:";
     this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label2.Location = new System.Drawing.Point(25, 17);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(42, 13);
     this.label2.TabIndex = 1;
     this.label2.Text = "Name:";
     this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label4.Location = new System.Drawing.Point(35, 33);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(32, 13);
     this.label4.TabIndex = 3;
     this.label4.Text = "P&&L:";
     this.TraderIDLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.TraderIDLabel.AutoSize = true;
     this.TraderIDLabel.Location = new System.Drawing.Point(73, 1);
     this.TraderIDLabel.Name = "TraderIDLabel";
     this.TraderIDLabel.Size = new System.Drawing.Size(22, 13);
     this.TraderIDLabel.TabIndex = 4;
     this.TraderIDLabel.Text = "???";
     base.ClientSize = new System.Drawing.Size(234, 167);
     base.Controls.Add(this.TradingLimitsGrid);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     base.Name = "TraderInfo";
     base.Padding = new System.Windows.Forms.Padding(10);
     this.Text = "Trader Info";
     ((ISupportInitialize)this.TradingLimitsGrid).EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
 }
Beispiel #50
0
 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(OTCEntry));
     this.AutoAcceptCheckBox = new System.Windows.Forms.CheckBox();
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.PendingPage = new System.Windows.Forms.TabPage();
     this.PendingGrid = new GridEX();
     this.CompletedPage = new System.Windows.Forms.TabPage();
     this.CompletedGrid = new GridEX();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.label4 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.TraderDropDown = new System.Windows.Forms.ComboBox();
     this.PriceUpDown = new System.Windows.Forms.NumericUpDown();
     this.VolumeUpDown = new System.Windows.Forms.NumericUpDown();
     this.label1 = new System.Windows.Forms.Label();
     this.TickerDropDown = new System.Windows.Forms.ComboBox();
     this.BuySellButton = new System.Windows.Forms.Button();
     this.SubmitButton = new System.Windows.Forms.Button();
     this.label5 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.SettlePeriod = new System.Windows.Forms.NumericUpDown();
     this.SettleTick = new System.Windows.Forms.NumericUpDown();
     this.IsImmediately = new System.Windows.Forms.CheckBox();
     this.tabControl1.SuspendLayout();
     this.PendingPage.SuspendLayout();
     ((ISupportInitialize)this.PendingGrid).BeginInit();
     this.CompletedPage.SuspendLayout();
     ((ISupportInitialize)this.CompletedGrid).BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     ((ISupportInitialize)this.PriceUpDown).BeginInit();
     ((ISupportInitialize)this.VolumeUpDown).BeginInit();
     ((ISupportInitialize)this.SettlePeriod).BeginInit();
     ((ISupportInitialize)this.SettleTick).BeginInit();
     base.SuspendLayout();
     this.AutoAcceptCheckBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.AutoAcceptCheckBox.AutoSize = true;
     this.AutoAcceptCheckBox.Checked = Settings.Default.IsOTCAutoAccept;
     this.AutoAcceptCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", Settings.Default, "IsOTCAutoAccept", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
     this.AutoAcceptCheckBox.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     this.AutoAcceptCheckBox.Location = new System.Drawing.Point(422, 2);
     this.AutoAcceptCheckBox.Name = "AutoAcceptCheckBox";
     this.AutoAcceptCheckBox.Size = new System.Drawing.Size(160, 17);
     this.AutoAcceptCheckBox.TabIndex = 0;
     this.AutoAcceptCheckBox.Text = "Auto-Accept All OTC Orders";
     this.AutoAcceptCheckBox.UseVisualStyleBackColor = true;
     this.AutoAcceptCheckBox.CheckedChanged += new System.EventHandler(this.AutoAcceptCheckBox_CheckedChanged);
     this.tabControl1.Controls.Add(this.PendingPage);
     this.tabControl1.Controls.Add(this.CompletedPage);
     this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location = new System.Drawing.Point(0, 0);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(584, 180);
     this.tabControl1.TabIndex = 4;
     this.PendingPage.AutoScroll = true;
     this.PendingPage.Controls.Add(this.PendingGrid);
     this.PendingPage.Location = new System.Drawing.Point(4, 22);
     this.PendingPage.Name = "PendingPage";
     this.PendingPage.Size = new System.Drawing.Size(576, 154);
     this.PendingPage.TabIndex = 0;
     this.PendingPage.Text = "Pending";
     this.PendingPage.UseVisualStyleBackColor = true;
     this.PendingGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.PendingGrid.Location = new System.Drawing.Point(0, 0);
     this.PendingGrid.Name = "PendingGrid";
     this.PendingGrid.Size = new System.Drawing.Size(576, 154);
     this.PendingGrid.TabIndex = 4;
     this.CompletedPage.Controls.Add(this.CompletedGrid);
     this.CompletedPage.Location = new System.Drawing.Point(4, 22);
     this.CompletedPage.Name = "CompletedPage";
     this.CompletedPage.Size = new System.Drawing.Size(476, 195);
     this.CompletedPage.TabIndex = 1;
     this.CompletedPage.Text = "Completed";
     this.CompletedPage.UseVisualStyleBackColor = true;
     this.CompletedGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.CompletedGrid.Location = new System.Drawing.Point(0, 0);
     this.CompletedGrid.Name = "CompletedGrid";
     this.CompletedGrid.Size = new System.Drawing.Size(476, 195);
     this.CompletedGrid.TabIndex = 5;
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.ColumnCount = 6;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100f));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.SubmitButton, 5, 1);
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.label2, 3, 0);
     this.tableLayoutPanel1.Controls.Add(this.label3, 4, 0);
     this.tableLayoutPanel1.Controls.Add(this.TraderDropDown, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.PriceUpDown, 4, 1);
     this.tableLayoutPanel1.Controls.Add(this.VolumeUpDown, 3, 1);
     this.tableLayoutPanel1.Controls.Add(this.label1, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.TickerDropDown, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.BuySellButton, 2, 1);
     this.tableLayoutPanel1.Controls.Add(this.label5, 3, 2);
     this.tableLayoutPanel1.Controls.Add(this.label6, 4, 2);
     this.tableLayoutPanel1.Controls.Add(this.SettlePeriod, 3, 3);
     this.tableLayoutPanel1.Controls.Add(this.SettleTick, 4, 3);
     this.tableLayoutPanel1.Controls.Add(this.IsImmediately, 1, 3);
     this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.tableLayoutPanel1.Font = new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 180);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 4;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.Size = new System.Drawing.Size(584, 82);
     this.tableLayoutPanel1.TabIndex = 2;
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label4.Location = new System.Drawing.Point(3, 3);
     this.label4.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(43, 11);
     this.label4.TabIndex = 30;
     this.label4.Text = "Trader:";
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label2.Location = new System.Drawing.Point(354, 3);
     this.label2.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(45, 11);
     this.label2.TabIndex = 29;
     this.label2.Text = "Volume:";
     this.label3.AutoSize = true;
     this.label3.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label3.Location = new System.Drawing.Point(430, 3);
     this.label3.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(34, 11);
     this.label3.TabIndex = 35;
     this.label3.Text = "Price:";
     this.TraderDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TraderDropDown.FormattingEnabled = true;
     this.TraderDropDown.Location = new System.Drawing.Point(3, 17);
     this.TraderDropDown.Name = "TraderDropDown";
     this.TraderDropDown.Size = new System.Drawing.Size(80, 21);
     this.TraderDropDown.TabIndex = 0;
     this.PriceUpDown.Increment = new decimal(new int[]
     {
         1,
         0,
         0,
         131072
     });
     this.PriceUpDown.Location = new System.Drawing.Point(430, 17);
     System.Windows.Forms.NumericUpDown arg_9EE_0 = this.PriceUpDown;
     int[] array = new int[4];
     array[0] = 1000000000;
     arg_9EE_0.Maximum = new decimal(array);
     this.PriceUpDown.Name = "PriceUpDown";
     this.PriceUpDown.Size = new System.Drawing.Size(70, 21);
     this.PriceUpDown.TabIndex = 4;
     System.Windows.Forms.NumericUpDown arg_A3B_0 = this.VolumeUpDown;
     int[] array2 = new int[4];
     array2[0] = 10;
     arg_A3B_0.Increment = new decimal(array2);
     this.VolumeUpDown.Location = new System.Drawing.Point(354, 17);
     System.Windows.Forms.NumericUpDown arg_A75_0 = this.VolumeUpDown;
     int[] array3 = new int[4];
     array3[0] = 1000000000;
     arg_A75_0.Maximum = new decimal(array3);
     this.VolumeUpDown.Name = "VolumeUpDown";
     this.VolumeUpDown.Size = new System.Drawing.Size(70, 21);
     this.VolumeUpDown.TabIndex = 3;
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label1.Location = new System.Drawing.Point(89, 3);
     this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 11);
     this.label1.TabIndex = 1;
     this.label1.Text = "Ticker:";
     this.TickerDropDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.TickerDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.TickerDropDown.FormattingEnabled = true;
     this.TickerDropDown.Location = new System.Drawing.Point(89, 17);
     this.TickerDropDown.Name = "TickerDropDown";
     this.TickerDropDown.Size = new System.Drawing.Size(213, 21);
     this.TickerDropDown.TabIndex = 1;
     this.BuySellButton.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.BuySellButton.Location = new System.Drawing.Point(308, 17);
     this.BuySellButton.Name = "BuySellButton";
     this.BuySellButton.Size = new System.Drawing.Size(40, 21);
     this.BuySellButton.TabIndex = 2;
     this.BuySellButton.Text = "BUY";
     this.BuySellButton.UseVisualStyleBackColor = true;
     this.BuySellButton.Click += new System.EventHandler(this.BuySellButton_Click);
     this.SubmitButton.Dock = System.Windows.Forms.DockStyle.Fill;
     this.SubmitButton.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.SubmitButton.Location = new System.Drawing.Point(506, 17);
     this.SubmitButton.Name = "SubmitButton";
     this.tableLayoutPanel1.SetRowSpan(this.SubmitButton, 3);
     this.SubmitButton.Size = new System.Drawing.Size(75, 62);
     this.SubmitButton.TabIndex = 5;
     this.SubmitButton.Text = "Submit";
     this.SubmitButton.UseVisualStyleBackColor = true;
     this.SubmitButton.Click += new System.EventHandler(this.SubmitButton_Click);
     this.label5.AutoSize = true;
     this.label5.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label5.Location = new System.Drawing.Point(354, 44);
     this.label5.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(41, 11);
     this.label5.TabIndex = 36;
     this.label5.Text = "Period:";
     this.label6.AutoSize = true;
     this.label6.Font = new System.Drawing.Font("Tahoma", 6.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     this.label6.Location = new System.Drawing.Point(430, 44);
     this.label6.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(29, 11);
     this.label6.TabIndex = 37;
     this.label6.Text = "Tick:";
     this.SettlePeriod.Location = new System.Drawing.Point(354, 58);
     System.Windows.Forms.NumericUpDown arg_E50_0 = this.SettlePeriod;
     int[] array4 = new int[4];
     array4[0] = 1000000000;
     arg_E50_0.Maximum = new decimal(array4);
     System.Windows.Forms.NumericUpDown arg_E6F_0 = this.SettlePeriod;
     int[] array5 = new int[4];
     array5[0] = 1;
     arg_E6F_0.Minimum = new decimal(array5);
     this.SettlePeriod.Name = "SettlePeriod";
     this.SettlePeriod.Size = new System.Drawing.Size(70, 21);
     this.SettlePeriod.TabIndex = 38;
     System.Windows.Forms.NumericUpDown arg_EBF_0 = this.SettlePeriod;
     int[] array6 = new int[4];
     array6[0] = 1;
     arg_EBF_0.Value = new decimal(array6);
     this.SettleTick.Location = new System.Drawing.Point(430, 58);
     System.Windows.Forms.NumericUpDown arg_EF9_0 = this.SettleTick;
     int[] array7 = new int[4];
     array7[0] = 1000000000;
     arg_EF9_0.Maximum = new decimal(array7);
     System.Windows.Forms.NumericUpDown arg_F18_0 = this.SettleTick;
     int[] array8 = new int[4];
     array8[0] = 1;
     arg_F18_0.Minimum = new decimal(array8);
     this.SettleTick.Name = "SettleTick";
     this.SettleTick.Size = new System.Drawing.Size(70, 21);
     this.SettleTick.TabIndex = 39;
     System.Windows.Forms.NumericUpDown arg_F68_0 = this.SettleTick;
     int[] array9 = new int[4];
     array9[0] = 1;
     arg_F68_0.Value = new decimal(array9);
     this.IsImmediately.Anchor = System.Windows.Forms.AnchorStyles.Right;
     this.IsImmediately.AutoSize = true;
     this.IsImmediately.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.tableLayoutPanel1.SetColumnSpan(this.IsImmediately, 2);
     this.IsImmediately.Location = new System.Drawing.Point(233, 60);
     this.IsImmediately.Name = "IsImmediately";
     this.IsImmediately.Size = new System.Drawing.Size(115, 17);
     this.IsImmediately.TabIndex = 40;
     this.IsImmediately.Text = "Settle Immediately";
     this.IsImmediately.UseVisualStyleBackColor = true;
     this.IsImmediately.CheckedChanged += new System.EventHandler(this.IsImmediately_CheckedChanged);
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(584, 262);
     base.Controls.Add(this.AutoAcceptCheckBox);
     base.Controls.Add(this.tabControl1);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
     this.MinimumSize = new System.Drawing.Size(500, 38);
     base.Name = "OTCEntry";
     this.Text = "OTC Trade";
     this.tabControl1.ResumeLayout(false);
     this.PendingPage.ResumeLayout(false);
     ((ISupportInitialize)this.PendingGrid).EndInit();
     this.CompletedPage.ResumeLayout(false);
     ((ISupportInitialize)this.CompletedGrid).EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     ((ISupportInitialize)this.PriceUpDown).EndInit();
     ((ISupportInitialize)this.VolumeUpDown).EndInit();
     ((ISupportInitialize)this.SettlePeriod).EndInit();
     ((ISupportInitialize)this.SettleTick).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }