示例#1
0
        private void LoadSplit(int i, Split split)
        {
            dynamic s = Splits[i];

            s.Split          = split;
            s.NameLabel.Text = split.Name;
            DifferenceLabel diffLabel = s.DiffLabel;

            diffLabel.SetDifference(Run, split, GetDifference);
            s.TimeLabel.Text = TIME_TIME_FORMATTER.FormatTicks(GetRelevantTicks(split), Run.Category.TicksPerSecond);
        }
示例#2
0
 private Label CreateDiffLabel()
 {
     DifferenceLabel diffLabel = new DifferenceLabel();
     diffLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))));
     diffLabel.BackColor = Color.Transparent;
     diffLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     diffLabel.AutoSize = true;
     diffLabel.Location = new System.Drawing.Point(160, 0);
     diffLabel.Margin = new System.Windows.Forms.Padding(0);
     diffLabel.Location = new System.Drawing.Point(0, 0);
     diffLabel.Size = new System.Drawing.Size(34, 13);
     diffLabel.TabIndex = 3;
     diffLabel.Text = "";
     return diffLabel;
 }
示例#3
0
        private Label CreateDiffLabel()
        {
            DifferenceLabel diffLabel = new DifferenceLabel();

            diffLabel.Anchor    = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))));
            diffLabel.BackColor = Color.Transparent;
            diffLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            diffLabel.AutoSize  = true;
            diffLabel.Location  = new System.Drawing.Point(160, 0);
            diffLabel.Margin    = new System.Windows.Forms.Padding(0);
            diffLabel.Location  = new System.Drawing.Point(0, 0);
            diffLabel.Size      = new System.Drawing.Size(34, 13);
            diffLabel.TabIndex  = 3;
            diffLabel.Text      = "";
            return(diffLabel);
        }