public string[] MakeArgs() { var args = new List <string>(); args.Add("-use"); args.Add(Use.ToString()); if (Use == Uses.Commertial) { args.Add("-license"); args.Add(LicenseFile); } args.Add("-action"); args.Add(Action.ToString()); args.Add("-install_dir"); args.Add(InstallationPath); if (AutoStart) { args.Add("-auto_start"); } if (ResetFirewall) { args.Add("-reset_fw"); } if (RemoveUserData) { args.Add("-clear_data"); } return(args.ToArray()); }
public string ToLine() { return(string.Join("\t", Filename, Url, ID.ToString(), Title, Description, Author, Featured.ToString(), Uses.ToString(), Favorites.ToString(), Code.ToString())); }
public override string ToString(int uses_left) { return(String.Format("Item: {0}, Uses {1}", full_name(), uses_left == 0 ? Uses.ToString() : string.Format("{0}/{1}", uses_left, Uses))); }
public override string ToString(int uses_left) { return(String.Format("Weapon: {0}, Mgt {1}, Uses {2}", full_name(), Mgt, uses_left == 0 ? Uses.ToString() : string.Format("{0}/{1}", uses_left, Uses))); }