Exemplo n.º 1
0
 public override object GetData()
 {
     return(new Collection(
                Data0.ToString(CultureInfo.InvariantCulture),
                new Collection(Data1.ToString(CultureInfo.InvariantCulture), Data2.ToString(CultureInfo.InvariantCulture), FileName),
                "\"" + Name + "\"",
                Synonym.GetData(),
                "\"" + Comment + "\""
                ));
 }
Exemplo n.º 2
0
        public override string ToString()
        {
            string str = Data1.ToString("X8") + '-' + Data2.ToString("X4") + '-' + Data3.ToString("X4") + '-';

            for (int i = 0; i < 2; i++)
            {
                str += Data4[i].ToString("X2");
            }
            str += '-';
            for (int i = 2; i < 8; i++)
            {
                str += Data4[i].ToString("X2");
            }
            return(str);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Handles the Tick event of the Timer1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        private void Timer1_Tick(object sender, EventArgs e)
        {
            Timer1.Enabled = false;
            ReadAllAnalog(ref Data1, ref Data2);
            VScrollBar3.Value = 255 - Data1;
            VScrollBar4.Value = 255 - Data2;
            Label6.Text       = Data1.ToString();
            Label7.Text       = Data2.ToString();
            TextBox1.Text     = ReadCounter(1).ToString();
            TextBox2.Text     = ReadCounter(2).ToString();
            int i = ReadAllDigital();

            CheckBox4.Checked = (i & 1) > 0;
            CheckBox5.Checked = (i & 2) > 0;
            CheckBox6.Checked = (i & 4) > 0;
            CheckBox7.Checked = (i & 8) > 0;
            CheckBox8.Checked = (i & 16) > 0;
            Timer1.Enabled    = true;
        }
Exemplo n.º 4
0
 public string OperatorToString() =>
 Data1.ToString() + " "
 + Data2.ToString() + " "
 + Data3.ToString() + " "
 + Data4.ToString() + " "
 + Data5.ToString();
 public override string ToString()
 {
     return(Command.ToString() + " - " + MidiChannel.ToString() + " - " + Data1.ToString() + " - " + Data2.ToString());
 }
Exemplo n.º 6
0
 public override string ToString()
 {
     return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(ArticleGroupId)}={ArticleGroupId.ToString("X")}, {nameof(ArcEntryGroup)}={ArcEntryGroup.ToString("X")}, {nameof(Bone)}={Bone.ToString("X")}, {nameof(ActionFlags)}={ActionFlags.ToString("X")}, {nameof(SubActionFlags)}={SubActionFlags.ToString("X")}, {nameof(Actions)}={Actions.ToString("X")}, {nameof(SubActionMain)}={SubActionMain.ToString("X")}, {nameof(SubActionGfx)}={SubActionGfx.ToString("X")}, {nameof(SubActionSfx)}={SubActionSfx.ToString("X")}, {nameof(ModelVisibility)}={ModelVisibility.ToString("X")}, {nameof(CollisionData)}={CollisionData.ToString("X")}, {nameof(Data2)}={Data2.ToString("X")}, {nameof(Data3)}={Data3.ToString("X")}, {nameof(SubActionCount)}={SubActionCount.ToString("X")}}}");
 }
Exemplo n.º 7
0
 public override string ToString()
 {
     return("Devices:" + mDevices0 + " Command:" + X10Command.ToString() + " Brightness (scale 22):" + mBrightness.ToString() + " Data1:" + Data1.ToString() + " Data2:" + Data2.ToString());
 }